-
Notifications
You must be signed in to change notification settings - Fork 17
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
Treat prepublish as publish; preinstall as install #11
base: master
Are you sure you want to change the base?
Conversation
Diff as requested in discussion on iarna#10. Not sure it'll work for all use cases, but it works for mine, so I've quietly forked it until `npm@4` comes along and straightens this mess out for everyone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what I'm missing here is what problem you're trying to solve.
@@ -11,6 +11,7 @@ function inCommand (cmd) { | |||
if (!npm_config_argv.cooked instanceof Array) process.exit(1) | |||
|
|||
var V | |||
if (npm_config_argv.cooked[0] === 'run') npm_config_argv.cooked.shift() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're strippping the first argument if it's run
but I don't get what problem you're solving?
It looks like you're trying to make npm run prepublish
be detectable? Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per #10, lerna bootstrap
runs npm prepublish
in each package directory to get it ready for a symlink from one of its dependencies.
Fixes #1 |
Should we consider |
Diff as requested in discussion on #10. Not sure it'll work for all use cases, but it works for mine, so I've quietly forked it until
npm@4
comes along and straightens this mess out for everyone.Not ready for acceptance by a long shot: