Skip to content

Commit db39ba2

Browse files
Throne3dekmartin
authored andcommitted
Use a prepare script for transpiling instead of prepublish (#323)
From Travis logs: As of npm@5, `prepublish` scripts will run only for `npm publish`. (In npm@4 and previous versions, it also runs for `npm install`.) See the deprecation note in `npm help scripts` for more information. This was also causing discord-irc to fail to transpile when installed using npm from source. This modifies the script to run on the `prepare` hook, so it should transpile when installed directly from source too.
1 parent 6eca392 commit db39ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"scripts": {
2626
"start": "node dist/index.js",
2727
"build": "babel lib --out-dir dist",
28-
"prepublish": "npm run build",
28+
"prepare": "npm run build",
2929
"lint": "eslint . --ignore-path .gitignore",
3030
"coverage": "nyc --require babel-core/register _mocha -- test/*.test.js",
3131
"report": "nyc report --reporter=text-lcov | coveralls",

0 commit comments

Comments
 (0)