Skip to content

Add .npmrc save-exact=true and pin remaining caret ranges #2904

@nielsbosma

Description

@nielsbosma

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

  1. Create .npmrc at src/frontend/.npmrc with save-exact=true
  2. Pin the 3 caret-range devDependencies in src/frontend/package.json
  3. Run pnpm install to regenerate the lockfile with pinned versions

Plan ID: 01390

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions