From cbe6813168af341456a80ffad698c53305da10d4 Mon Sep 17 00:00:00 2001 From: ferdinando-ferreira Date: Mon, 10 Sep 2018 21:14:24 +0100 Subject: [PATCH] refactor(package): cross-platform `prepare` script (`scripts`) (#1498) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f963f750c1..7512cfe47e 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "scripts": { "lint": "eslint bin lib test examples client-src", "test": "nyc --reporter lcovonly mocha --full-trace --check-leaks --exit", - "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", + "prepare": "rimraf ./ssl/*.pem && npm run -s transpile:index && npm run -s build:live && npm run -s build:index && npm run -s build:sockjs", "transpile:index": "babel client-src/default --out-dir client --ignore *.config.js", "build:index": "webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js", "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 @@ "mocha": "^5.2.0", "mocha-sinon": "^2.0.0", "nyc": "^12.0.2", + "rimraf": "^2.6.2", "should": "^13.2.0", "sinon": "^6.1.5", "standard-version": "^4.4.0",