-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
50 lines (50 loc) · 1.81 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"name": "hello_world",
"version": "1.0.0",
"description": "AWS SAM NodeJS Typescript template",
"license": "MIT",
"dependencies": {
"aws-sdk": "^2.1336.0",
"axios": "^0.21.4",
"tslib": "^2.5.0",
"uuid": "^8.3.2"
},
"scripts": {
"test": "jest",
"coverage": "jest --coverage",
"lint": "eslint 'src/**/*.ts'",
"compileForDevelopment": "tsc --sourceMap",
"compileForProduction": "tsc",
"compileAndWatch": "tsc --sourceMap -w --preserveWatchOutput",
"prepareDebugging": "npm run compileForDevelopment && cp ./package.json ./dist",
"compileTestLint": "npm run compileForProduction && npm run test && npm run lint",
"createLayerFolder": "[[ -d dependency-layer/nodejs ]] || mkdir -p dependency-layer/nodejs",
"syncLayer": "npm run createLayerFolder && cp ./package.json ./dependency-layer/nodejs && cd ./dependency-layer/nodejs && rm -rf node_modules && npm i --production",
"prerunApiLocal": "npm run syncLayer",
"runApiLocal": "npm run compileAndWatch & sam local start-api --template ./infra-templates/master-template.yaml && fg",
"predeploy": "npm run compileTestLint && npm run syncLayer",
"deploy": "sam deploy"
},
"devDependencies": {
"@babel/core": "^7.21.3",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.21.0",
"@types/aws-lambda": "^8.10.113",
"@types/aws-sdk": "^2.7.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.16",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"babel-jest": "^27.5.1",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.27.5",
"husky": "^7.0.4",
"jest": "^27.5.1",
"pre-commit": "^1.2.2",
"typescript": "^4.9.5"
},
"pre-commit": [
"compileTestLint"
]
}