Skip to content

Commit

Permalink
Use 'prepare' instead of 'prepublish' hook
Browse files Browse the repository at this point in the history
From npm v5.0.0
Git dependencies with prepare scripts will have their devDependencies installed,
and npm install run in their directory before being packed.
  • Loading branch information
Rohan Bhanderi committed Nov 1, 2018
1 parent 7cdfb74 commit 3d6a148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"cover": "istanbul cover node_modules/mocha/bin/_mocha",
"lint": "eslint bin lib test examples client-src",
"mocha": "mocha --full-trace --check-leaks",
"prepublish": "(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": "(rm ssl/*.pem || true) && npm run -s transpile:index && npm run -s build:live && npm run -s build:index && npm run -s build:sockjs",
"test": "npm run lint && npm run mocha",
"transpile:index": "babel client-src/default --out-dir client --ignore *.config.js",
"build:index": "webpack ./client-src/default/index.js client/index.bundle.js --color --config client-src/default/webpack.config.js",
Expand Down

0 comments on commit 3d6a148

Please sign in to comment.