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

Ability to run shonkwrap automatically on package install #7

Open
kopach opened this issue Dec 3, 2018 · 0 comments
Open

Ability to run shonkwrap automatically on package install #7

kopach opened this issue Dec 3, 2018 · 0 comments

Comments

@kopach
Copy link

kopach commented Dec 3, 2018

I would like to automate process of execution of shonkwrap. Is there any way to run shonkwrap automatically on package install? I've tried to add "postinstall": "shonkwrap" script as well as "postshrinkwrap": "shonkwrap" but both doesn't work correctly for me. In first case - npm's shrinkwrap is executed after shonkwrap, so effect of shonkwrap isn't visible after all. In second case - npm is falling into the loop as looks like shonkwrap internally executes shrinkwrap which executes postshrinkwrap and so on.

Would it be possible to add, for example, some flag, that would prevent shrinkwrap command from being executed internally? If I do have npm-shrinkwrap.json file in project root directory - every npm install will trigger npm shrinkwrap anyway :)

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

1 participant