"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.json
orpackage.json
orpackage.json
+package-lock.json
?package.json
+package-lock.json
-
What's the relationship between
package.json
andpackage-lock.json
?package.json
overrulespackage-lock.json
when^
/~
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: