snyk / add-to-package

Adds Snyk to node packages, both for test, protect and version bumps.
Other
2 stars 5 forks source link

feat: for npm5, use the prepare script instead of prepublish #2

Closed deebugger closed 7 years ago

deebugger commented 7 years ago

What does this PR do?

For npm >= 5, put 'npm run snyk-protect' in the prepare script, otherwise put it in the prepublish script (as before)

Any background context you want to provide?

npm5 will deprecate the prepublish script

What are the relevant tickets?

https://snyksec.atlassian.net/browse/SC-3539