From d990139aa27d351fcfbaf3e7ea5e928333172ebb Mon Sep 17 00:00:00 2001 From: Edward Jones Date: Thu, 5 Oct 2017 17:41:33 +0100 Subject: [PATCH] Use a prepare script for transpiling instead of prepublish 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. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f940add0..2efbeee7 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "scripts": { "start": "node dist/index.js", "build": "babel lib --out-dir dist", - "prepublish": "npm run build", + "prepare": "npm run build", "lint": "eslint . --ignore-path .gitignore", "coverage": "nyc --require babel-core/register _mocha -- test/*.test.js", "report": "nyc report --reporter=text-lcov | coveralls",