Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a prepare script for transpiling instead of prepublish #323

Merged
merged 1 commit into from
Oct 10, 2017

Conversation

Throne3d
Copy link
Collaborator

@Throne3d Throne3d commented Oct 5, 2017

From Travis logs (in the npm install script):
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. (npm install -g reactiflux/discord-irc fails, but npm install -g Throne3d/discord-irc, using this patch, succeeds.)

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.
@Throne3d Throne3d requested a review from ekmartin October 5, 2017 16:55
@coveralls
Copy link

coveralls commented Oct 5, 2017

Coverage Status

Coverage remained the same at 98.221% when pulling d990139 on Throne3d:fix/script-prepare into b86fd1e on reactiflux:master.

@ekmartin ekmartin merged commit db39ba2 into reactiflux:master Oct 10, 2017
@Throne3d Throne3d deleted the fix/script-prepare branch October 10, 2017 16:33
@ekmartin
Copy link
Member

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants