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

Question: Postinstall on module #13

Closed
khankuan opened this issue Feb 1, 2017 · 1 comment
Closed

Question: Postinstall on module #13

khankuan opened this issue Feb 1, 2017 · 1 comment

Comments

@khankuan
Copy link

khankuan commented Feb 1, 2017

Hi, I understand that postinstall runs when installing module A in module B. However, it is also running when I do npm install in module A while development. Is there a way to only execute when it is being installed elsewhere? Thanks!

@exogen
Copy link
Owner

exogen commented Mar 22, 2017

Hi @khankuan! I have a PR #14 with this feature; if you'd like to test it out before I release it, you can install the branch like so:

npm install exogen/postinstall-build#only-as-dependency-flag-execpath

and your postinstall-build command will magically get the new --only-as-dependency flag :)

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

No branches or pull requests

2 participants