Skip to content

Commit

Permalink
add 'resetdeps' script target
Browse files Browse the repository at this point in the history
As we move around branches with the CLI, it's possible to occasionally
end up in a state where the node_modules folder has some things in the
wrong places as we self-hoist.  This command lets us do 'npm run
resetdeps' to get back to a consistent state.
  • Loading branch information
isaacs committed Jul 30, 2020
1 parent bd0d94b commit 3fe47d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@
"eslint": "eslint",
"lint": "npm run eslint -- \"lib/**/*.js\"",
"lintfix": "npm run lint -- --fix",
"prelint": "rimraf test/npm_cache*"
"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"
},
"//": [
"XXX temporarily only run unit tests while v7 beta is in progress",
Expand Down

0 comments on commit 3fe47d4

Please sign in to comment.