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

Treat prepublish as publish; preinstall as install #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

garthk
Copy link

@garthk garthk commented Jan 5, 2017

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:

  • Version not bumped to indicate breaking change
  • Insufficient discussion

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.
Copy link
Owner

@iarna iarna left a 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()
Copy link
Owner

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?

Copy link
Author

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.

index.js Show resolved Hide resolved
@lionello
Copy link

Fixes #1

@lionello
Copy link

Should we consider ci the same as install too? It's the recommended way to do "npm install" in CI.

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.

None yet

4 participants