Skip to content

Commit

Permalink
build(yarn): reset script now wipes node modules, yarn lock
Browse files Browse the repository at this point in the history
Found myself in need of this when strange errors started occurring
between branch switches where the gRPC tooling was not installed
properly despite the configure script running successfully.
Now the reset is script is much more robust and it closer
resembles the outcome of a fresh clone.

Also: Ran the reset script and it updated the lock file, including
that in the commit as well to see if in the future othe reset runs
will also generate these/similar changes to the lock file or not.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Sep 21, 2021
1 parent 63e639e commit 8012d05
Show file tree
Hide file tree
Showing 2 changed files with 616 additions and 596 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
},
"scripts": {
"run-ci": "./tools/ci.sh",
"reset": "git clean -f -X && yarn run configure",
"reset:node-modules": "del-cli --dry-run '**/node_modules'",
"reset:git": "git clean -f -X",
"reset:yarn-lock": "del-cli yarn.lock && yarn install --update-checksums --force",
"reset": "run-s reset:git reset:node-modules reset:yarn-lock configure",
"configure": "yarn install --frozen-lockfile --non-interactive && yarn run build:dev:backend",
"install-yarn": "npm install --global yarn@1.19.0",
"custom-checks": "TS_NODE_PROJECT=./tools/tsconfig.json node --trace-deprecation --experimental-modules --abort-on-uncaught-exception --loader ts-node/esm --experimental-specifier-resolution=node ./tools/custom-checks/run-custom-checks.ts",
Expand Down
Loading

0 comments on commit 8012d05

Please sign in to comment.