"files" vs
.npmignore
files - whitelisting all files that should be included in a npm release
.npmignore - blacklisting all files that should be included in a npm release
-
Why
package-lock.json?Lock dependency tree for repeated installations.
-
What's the source of truth when it comes installing node_modules?
package-lock.jsonorpackage.jsonorpackage.json+package-lock.json?package.json+package-lock.json -
What's the relationship between
package.jsonandpackage-lock.json?package.jsonoverrulespackage-lock.jsonwhen^/~was used inpackage.json. -
npm update [package]ornpm install [package]? -
npm ci -
Which to choose when managing dependency versions in
package.json?^or~or exact version? What's the context? (library vs plugin vs app)
Related: