We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b848b5d commit c54996aCopy full SHA for c54996a
package.json
@@ -12,7 +12,7 @@
12
"build:src": "esbuild \"src/**/*.ts\" --bundle --minify --sourcemap --platform=node --target=es2020 --outdir=temp-index",
13
"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",
14
"build": "npm run build:index && npm run build:src && npm run build:dependencies",
15
- "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",
+ "postbuild": "cd temp-index && 7z a -tzip ../dist/index.zip * && cd ../temp-dependencies-layer && 7z a ../dist/dependencies-layer.zip node_modules/* && cd .. && rimraf temp-index temp-dependencies-layer",
16
"start:local-db": "cross-env-shell data/scripts/start_local_dynamodb.sh",
17
"seed:local-db": "cross-env-shell data/scripts/seed_local_dynamodb.sh",
18
"start:local-api": "cross-env-shell data/scripts/start_local_api_gateway_and_lambda.sh",
0 commit comments