Skip to content

Commit cbe6813

Browse files
refactor(package): cross-platform prepare script (scripts) (#1498)
1 parent 3d37cc5 commit cbe6813

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"lint": "eslint bin lib test examples client-src",
1818
"test": "nyc --reporter lcovonly mocha --full-trace --check-leaks --exit",
19-
"prepare": "(rm ssl/*.pem || true) && npm run -s transpile:index && npm run -s build:live && npm run -s build:index && npm run -s build:sockjs",
19+
"prepare": "rimraf ./ssl/*.pem && npm run -s transpile:index && npm run -s build:live && npm run -s build:index && npm run -s build:sockjs",
2020
"transpile:index": "babel client-src/default --out-dir client --ignore *.config.js",
2121
"build:index": "webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js",
2222
"build:live": "webpack ./client-src/live/index.js -o client/live.bundle.js --color --config client-src/live/webpack.config.js",
@@ -75,6 +75,7 @@
7575
"mocha": "^5.2.0",
7676
"mocha-sinon": "^2.0.0",
7777
"nyc": "^12.0.2",
78+
"rimraf": "^2.6.2",
7879
"should": "^13.2.0",
7980
"sinon": "^6.1.5",
8081
"standard-version": "^4.4.0",

0 commit comments

Comments
 (0)