Skip to content

Commit

Permalink
move resetdeps script to a bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 18, 2020
1 parent b718b0e commit 966fec9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"lint": "npm run eslint -- \"lib/**/*.js\"",
"lintfix": "npm run lint -- --fix",
"prelint": "rimraf test/npm_cache*",
"resetdeps": "rm -rf node_modules && git checkout node_modules && node . i --ignore-scripts --no-audit && node scripts/bundle-and-gitignore-deps.js"
"resetdeps": "bash scripts/resetdeps.sh"
},
"//": [
"XXX temporarily only run unit tests while v7 beta is in progress",
Expand Down
8 changes: 8 additions & 0 deletions scripts/resetdeps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e
set -x
rm -rf node_modules
git checkout node_modules
node . i --ignore-scripts --no-audit
node . rebuild --ignore-scripts --no-audit
node scripts/bundle-and-gitignore-deps.js

0 comments on commit 966fec9

Please sign in to comment.