Skip to content

Commit 9f25796

Browse files
Add scripts on package.json for database
1 parent 9c68c4e commit 9f25796

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"build:src": "esbuild \"src/**/*.ts\" --bundle --minify --sourcemap --platform=node --target=es2020 --outdir=temp-index",
1212
"build:dependencies": "mkdir temp-dependencies-layer && node -e \"const fs = require('fs'); const pkg = require('./package.json'); fs.writeFileSync('temp-dependencies-layer/package.json', JSON.stringify({ name: 'temp-dependencies-layer', version: '1.0.0', dependencies: pkg.dependencies }, null, 2));\" && cd temp-dependencies-layer && npm install --omit=dev",
1313
"build": "npm run build:index && npm run build:src && npm run build:dependencies",
14-
"postbuild": "cd temp-index && 7z a -tzip ../dist/index.zip * && cd ../temp-dependencies-layer && 7z a ../dist/dependencies-layer.zip node_modules/* && cd .. && rmdir /s /q temp-index temp-dependencies-layer"
14+
"postbuild": "cd temp-index && 7z a -tzip ../dist/index.zip * && cd ../temp-dependencies-layer && 7z a ../dist/dependencies-layer.zip node_modules/* && cd .. && rmdir /s /q temp-index temp-dependencies-layer",
15+
"start:dynamodb": "cmd /c \"data\\bat-scripts\\start_local_dynamodb.bat\"",
16+
"seed:dynamodb": "cmd /c \"data\\bat-scripts\\seed_local_dynamodb.bat\""
1517
},
1618
"repository": {
1719
"type": "git",

0 commit comments

Comments
 (0)