You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
I would like to automate process of execution of
shonkwrap
. Is there any way to runshonkwrap
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 aftershonkwrap
, so effect ofshonkwrap
isn't visible after all. In second case - npm is falling into the loop as looks likeshonkwrap
internally executesshrinkwrap
which executespostshrinkwrap
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 havenpm-shrinkwrap.json
file in project root directory - everynpm install
will triggernpm shrinkwrap
anyway :)The text was updated successfully, but these errors were encountered: