Pin dependencies in package.json files #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Dependencies use caret ranges (e.g.
^4.3.6) which allow minor and patch updates. This can cause builds to break when a dependency publishes a bad update.What to do
Pin all dependencies to exact versions in all package.json files.
Files to change
package.json(root)apps/api/package.jsonapps/web/package.jsonpackages/shared/package.jsonpackages/db/package.jsonAcceptance criteria
4.3.6not^4.3.6)pnpm install --frozen-lockfilestill works.npmrcwithsave-exact=trueto enforce this going forwardNotes
The lockfile (
pnpm-lock.yaml) already pins exact versions for installs, but the package.json ranges still matter for whatpnpm updatewill do.