Skip to content

Commit

Permalink
package.json: run shell scripts with env bash
Browse files Browse the repository at this point in the history
This should be all it takes to keep node from trying to run them with cmd on Windows. Closes nextstrain#867.
  • Loading branch information
Artoria2e5 authored Jan 30, 2020
1 parent 50bcc82 commit da64c1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"main": "index.js",
"scripts": {
"create-data-dir": "./scripts/create-data-dir.sh",
"create-data-dir": "env bash ./scripts/create-data-dir.sh",
"postinstall": "npm run create-data-dir",
"view": "node auspice.js view --verbose",
"dev": "node auspice.js develop --verbose",
Expand All @@ -24,11 +24,11 @@
"build": "node auspice.js build --verbose",
"prepare": "npm run build",
"lint": "eslint src",
"get-data": "./scripts/get-data.sh",
"get-narratives": "./scripts/get-narratives.sh",
"get-data": "env bash ./scripts/get-data.sh",
"get-narratives": "env bash ./scripts/get-narratives.sh",
"heroku-postbuild": "npm run build && npm run get-data && npm run get-narratives",
"rebuild-docker-image": "./scripts/rebuild-docker-image.sh",
"gzip-and-upload": "./scripts/gzip-and-upload.sh",
"rebuild-docker-image": "env bash ./scripts/rebuild-docker-image.sh",
"gzip-and-upload": "env bash ./scripts/gzip-and-upload.sh",
"build-docs": "echo 'see ./docs-src/README.md'"
},
"dependencies": {
Expand Down

0 comments on commit da64c1b

Please sign in to comment.