Problem
The frontend project at src/frontend/ uses pnpm with a lockfile, but there is no .npmrc with save-exact=true. This means pnpm add <pkg> will default to inserting ^ (caret) ranges, allowing non-deterministic version resolution if the lockfile is deleted or regenerated.
Currently, most dependencies in package.json already use exact versions, but three devDependencies still have caret ranges:
@types/mdast: ^4.0.4
husky: ^9.1.7
lint-staged: ^16.4.0
Solution
- Create
.npmrc at src/frontend/.npmrc with save-exact=true
- Pin the 3 caret-range devDependencies in
src/frontend/package.json
- Run
pnpm install to regenerate the lockfile with pinned versions
Plan ID: 01390
Problem
The frontend project at
src/frontend/uses pnpm with a lockfile, but there is no.npmrcwithsave-exact=true. This meanspnpm add <pkg>will default to inserting^(caret) ranges, allowing non-deterministic version resolution if the lockfile is deleted or regenerated.Currently, most dependencies in
package.jsonalready use exact versions, but three devDependencies still have caret ranges:@types/mdast:^4.0.4husky:^9.1.7lint-staged:^16.4.0Solution
.npmrcatsrc/frontend/.npmrcwithsave-exact=truesrc/frontend/package.jsonpnpm installto regenerate the lockfile with pinned versionsPlan ID: 01390