Skip to content

Commit

Permalink
build(package.json): add reset script that git cleans prior to configure
Browse files Browse the repository at this point in the history
Why though?
This is designed to eliminate possible build issues that arise because of leftover code files
somehow lurking around the project directory structure that are being ignored by git and
therefore lulling a contributor to thinking that since VSCode shows no index/staged changes
the project is in a clean slate and the build should pass all the same.
The reset script in essence is a softer version of going all out, deleting your entire
project directory and cloning it from scratch which is a lot more effort than just running
the reset script added here that has a good chance of fixing the same problems as the hard
resetting if re-clone would fix.

Signed-off-by: Peter Somogyvari <[email protected]>
  • Loading branch information
petermetz authored and maramih committed Aug 17, 2021
1 parent 784748a commit b81cf90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
],
"scripts": {
"run-ci": "./tools/ci.sh",
"reset": "git clean -f -X && yarn run configure",
"configure": "yarn install --frozen-lockfile --non-interactive && yarn run build:dev:backend",
"install-yarn": "npm install --global [email protected]",
"custom-checks": "ts-node ./tools/custom-checks/run-custom-checks.ts",
Expand Down

0 comments on commit b81cf90

Please sign in to comment.