Skip to content

Commit 85ebd35

Browse files
chore: cleanup dist folder before compilation
1 parent 9b6f971 commit 85ebd35

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

package-lock.json

Lines changed: 14 additions & 3 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
@@ -29,10 +29,11 @@
2929
"url": "git://github.com/socketio/socket.io"
3030
},
3131
"scripts": {
32-
"test": "npm run format:check && tsc && nyc mocha --require ts-node/register --reporter spec --slow 200 --bail --timeout 10000 test/socket.io.ts",
32+
"compile": "rimraf ./dist && tsc",
33+
"test": "npm run format:check && npm run compile && nyc mocha --require ts-node/register --reporter spec --slow 200 --bail --timeout 10000 test/socket.io.ts",
3334
"format:check": "prettier --check 'lib/**/*.ts' 'test/**/*.ts'",
3435
"format:fix": "prettier --write 'lib/**/*.ts' 'test/**/*.ts'",
35-
"prepack": "tsc"
36+
"prepack": "npm run compile"
3637
},
3738
"dependencies": {
3839
"@types/cookie": "^0.4.0",
@@ -54,6 +55,7 @@
5455
"mocha": "^3.5.3",
5556
"nyc": "^11.2.1",
5657
"prettier": "^1.19.1",
58+
"rimraf": "^3.0.2",
5759
"socket.io-client": "3.0.2",
5860
"superagent": "^3.8.2",
5961
"supertest": "^3.0.0",

0 commit comments

Comments
 (0)