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 1b5f100
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 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 All @@ -36,6 +36,7 @@
"lib/",
"bin",
"client/",
"client-src/",
"ssl/"
],
"peerDependencies": {
Expand Down

0 comments on commit 1b5f100

Please sign in to comment.