Today I pulled latest from a shared Git repository and noticed that another developer on my team added an NPM package. So I ran npm install
, and then saw that my package-lock.json
file had changed. When I dug into what had changed, I found that "dev": true
had been removed from several package descriptions, for example:
"some-package": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/whatever/-/some-package-1.0.0.tgz",
"integrity": "some-big-hash",
"dev": true
},
The "dev": true
is gone after npm install
from several packages. Should I be concerned that NPM did this? I don't want these packages to be installed for production.
This question about "dev": true
is somewhat related, but there isn't a good answer yet and I still want to know if I'm doing something wrong. Why is NPM removing this?