-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
36 lines (36 loc) · 1.17 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"name": "trpc-aws",
"version": "1.0.0",
"main": "dist/index.js",
"author": "Vinícius Lourenço",
"license": "MIT",
"description": "Example project for tRPC and AWS",
"config": {
"aws_profile": "aws_h4ad",
"aws_region": "sa-east-1",
"aws_lambda_name": "test"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "tsc -p tsconfig.build.json",
"start": "nodemon src/run.ts",
"zip": "npx @h4ad/node-modules-packer ./ --include dist",
"update-function-code": "aws --profile $npm_package_config_aws_profile --region $npm_package_config_aws_region lambda update-function-code --function-name $npm_package_config_aws_lambda_name --zip-file fileb://deploy.zip --publish --cli-connect-timeout 6000",
"deploy": "npm run build && npm run zip && npm run update-function-code"
},
"dependencies": {
"@h4ad/serverless-adapter": "3.0.0",
"@trpc/server": "^10.29.1",
"body-parser": "^1.20.1",
"cors": "^2.8.5",
"zod": "^3.18.0"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.101",
"@types/cors": "^2.8.12",
"nodemon": "^2.0.19",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
}
}