Skip to content

Commit 8a3e604

Browse files
Update scripts with cross-env-shell
1 parent a7ece97 commit 8a3e604

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
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",
1414
"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\""
15+
"start:local-db": "cross-env-shell data/scripts/start_local_dynamodb.sh",
16+
"seed:local-db": "cross-env-shell data/scripts/seed_local_dynamodb.sh",
17+
"start:local-api": "cross-env-shell data/scripts/start_local_api_gateway_and_lambda.sh",
18+
"start:dev": "docker compose up -d && cross-env-shell data/scripts/wait-for-docker.sh && npm run start:local-db && npm run seed:local-db && npm run start:local-api"
1719
},
1820
"repository": {
1921
"type": "git",

0 commit comments

Comments
 (0)