Skip to content

Commit

Permalink
Ensure clean install before publishing
Browse files Browse the repository at this point in the history
To avoid accidentally running tests against an invalid tree after EG.
switching branch.
  • Loading branch information
badeball committed Apr 28, 2024
1 parent f4f161f commit 9759458
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"dist/**/*.d.ts"
],
"scripts": {
"clean": "rm -rf dist",
"clear-dist": "rm -rf dist",
"clean-install": "rm -rf node_modules && npm install",
"genversion": "genversion --semi --double --es6 lib/version.ts",
"build": "npm run genversion && tsc",
"watch": "npm run genversion && tsc --watch",
Expand All @@ -54,7 +55,7 @@
"test:run-all-specs": "mocha --timeout 0 test/run-all-specs.ts",
"test:integration": "cucumber-js",
"test:actions:examples": "xvfb-run bash -c 'act -W \".github/workflows/examples-branch.yml\" --use-gitignore=false --artifact-server-path=tmp/artifacts --env DISPLAY=$DISPLAY'",
"prepublishOnly": "npm run clean && npm run build && npm run test"
"prepublishOnly": "npm run clean-install && npm run clear-dist && npm run build && npm run test"
},
"dependencies": {
"@badeball/cypress-configuration": "^6.1.1",
Expand Down

0 comments on commit 9759458

Please sign in to comment.