Skip to content

Commit c54996a

Browse files
Update prebuild with rimraf
1 parent b848b5d commit c54996a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build:src": "esbuild \"src/**/*.ts\" --bundle --minify --sourcemap --platform=node --target=es2020 --outdir=temp-index",
1313
"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",
1414
"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",
15+
"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",
1616
"start:local-db": "cross-env-shell data/scripts/start_local_dynamodb.sh",
1717
"seed:local-db": "cross-env-shell data/scripts/seed_local_dynamodb.sh",
1818
"start:local-api": "cross-env-shell data/scripts/start_local_api_gateway_and_lambda.sh",

0 commit comments

Comments
 (0)