diff options
author | isaacs <i@izs.me> | 2020-08-18 21:28:13 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-08-18 21:28:13 +0300 |
commit | 966fec9bf383268bf56aaca6d26e41c4237e385e (patch) | |
tree | 85f44cf0a4a56fd5caae79da245c4c6502449e6a | |
parent | b718b0e2844d9244cc63667f62ccf81864cc1092 (diff) |
move resetdeps script to a bash script
-rw-r--r-- | package.json | 2 | ||||
-rwxr-xr-x | scripts/resetdeps.sh | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/package.json b/package.json index f04ea57c8..058fcf7e0 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/resetdeps.sh b/scripts/resetdeps.sh new file mode 100755 index 000000000..957987731 --- /dev/null +++ b/scripts/resetdeps.sh @@ -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 |