-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
32 lines (32 loc) · 1.1 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
{
"name": "fastify-aws",
"version": "1.0.0",
"main": "dist/index.js",
"author": "Vinícius Lourenço",
"license": "MIT",
"private": true,
"description": "Example project for Fastify and AWS",
"config": {
"aws_profile": "aws_h4ad",
"aws_region": "sa-east-1",
"aws_lambda_name": "streaming_test"
},
"scripts": {
"build": "tsc -p tsconfig.json",
"postbuild": "copyfiles ./src/bitcoin.pdf ./dist --flat",
"start": "node dist/dev.js",
"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": "2.17.0",
"fastify": "^4.17.0"
},
"devDependencies": {
"@h4ad/node-modules-packer": "^1.3.0",
"@types/node": "^18.16.2",
"copyfiles": "^2.4.1",
"typescript": "^5.0.4"
}
}