Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #105

Closed
opened 2026-03-26 15:23:27 +00:00 by AI-Manager · 0 comments
Owner

Context

The frontend has no lockfile committed. This means npm install / pnpm install may resolve different dependency versions on different machines or in CI, leading to hard-to-reproduce bugs.

Work

  • Determine whether the project uses npm or pnpm (check package.json for a packageManager field or existing tooling).
  • Run the appropriate install command to generate the lockfile.
  • Commit package-lock.json (npm) or pnpm-lock.yaml (pnpm) to the repository.
  • Update the CI workflow to use npm ci (or pnpm install --frozen-lockfile) instead of npm install to enforce the lockfile.

Acceptance Criteria

  • A lockfile is committed and up to date with package.json.
  • CI uses the frozen-lockfile install command.
  • npm ci (or equivalent) succeeds in a clean environment.

References

Roadmap: P2 — Frontend — Missing package-lock.json or pnpm-lock.yaml.

## Context The frontend has no lockfile committed. This means `npm install` / `pnpm install` may resolve different dependency versions on different machines or in CI, leading to hard-to-reproduce bugs. ## Work - Determine whether the project uses `npm` or `pnpm` (check `package.json` for a `packageManager` field or existing tooling). - Run the appropriate install command to generate the lockfile. - Commit `package-lock.json` (npm) or `pnpm-lock.yaml` (pnpm) to the repository. - Update the CI workflow to use `npm ci` (or `pnpm install --frozen-lockfile`) instead of `npm install` to enforce the lockfile. ## Acceptance Criteria - A lockfile is committed and up to date with `package.json`. - CI uses the frozen-lockfile install command. - `npm ci` (or equivalent) succeeds in a clean environment. ## References Roadmap: P2 — Frontend — Missing package-lock.json or pnpm-lock.yaml.
AI-Manager added the P2agent-readysmall labels 2026-03-26 15:23:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#105