-
Notifications
You must be signed in to change notification settings - Fork 240
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
[RRFC] remove npm-shrinkwrap.json
from the list of unignorable files
#511
Comments
Shouldn't a package-lock be used in the case of a shrinkwrap you don't want published? |
@dominykas yes, when such a lockfile is intentionally present. In my case, my package actually interacts with other projects' shrinkwrap files, so I'd generated one for testing - but because it was in npmignore, I assumed it would be ignored by npm. |
following up from our OpenRFC talk today: On the other hand I'm open to the alternative of making it ignorable via adding to |
I remain convinced that the subset of the infinitesimal number of packages intentionally published with a shrinkwrap file, using |
Motivation ("The Why")
I have
npm-shrinkwrap.json
in both.gitignore
and.npmignore
on basically all of my repos. However, I unknowingly brokels-engines
when I published it, not realizing that thenpm-shrinkwrap.json
i'd been playing with would be published despite being explicitly ignored.Possible solutions
npm-shrinkwrap.json
to be npmignoredThe upsides
The downsides
Can anyone provide any scenario where making one of the above changes would pose problems for someone?
The text was updated successfully, but these errors were encountered: