Docs
Link
Dependency Files
- package.json
- First
- Less specific
- Allows updating for minor versions (theoretically unbreaking)
- If edited directly will overrule package-lock.json
- package-lock.json
- Added later
- In practice minor versions can be breaking
- Way more specific. Records exact version
- yarn.lock
- For yarn
- Sometimes NPM is trash add you just use yarn to add shit
Link
Node CCS Notes