Skip to content

Commit 66973a3

Browse files
chore: cleanup dist folder before compilation
1 parent 4efa005 commit 66973a3

File tree

2 files changed

+76
-8
lines changed

2 files changed

+76
-8
lines changed

package-lock.json

Lines changed: 72 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,20 @@
2626
"expect.js": "0.3.1",
2727
"mocha": "3.2.0",
2828
"prettier": "^2.1.2",
29+
"rimraf": "^3.0.2",
2930
"socket.io-browsers": "^1.0.0",
3031
"typescript": "^4.0.3",
3132
"zuul": "3.11.1",
3233
"zuul-ngrok": "4.0.0"
3334
},
3435
"scripts": {
35-
"test": "npm run format:check && tsc && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
36+
"compile": "rimraf ./dist && tsc",
37+
"test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
3638
"test:node": "mocha --reporter dot --bail test/index.js",
3739
"test:browser": "zuul test/index.js --no-coverage",
3840
"format:fix": "prettier --write --parser typescript 'lib/**/*.ts' 'test/**/*.js'",
3941
"format:check": "prettier --check --parser typescript 'lib/**/*.ts' 'test/**/*.js'",
40-
"prepack": "tsc"
42+
"prepack": "npm run compile"
4143
},
4244
"license": "MIT",
4345
"engines": {

0 commit comments

Comments
 (0)