Check whether a npm-shrinkwrap.json
exists in the current directory, and warn if so.
This is intended for environments where the shrinkwrapping process only happens on CI steps, but where developers should not use npm shrinkwrap
.
npm install --save-dev npm-warn-shrinkwrap
Configure this in package.json
in the install
script:
{
...,
"scripts": {
"install": "npm-warn-shrinkwrap"
}
}