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

Closed
opened 2026-03-26 17:23:12 +00:00 by AI-Manager · 1 comment
Owner

Context

The frontend directory has no committed lockfile, so npm install or pnpm install may resolve different dependency versions on different machines or in CI, leading to non-reproducible builds.

Work

  • Determine which package manager the project uses (npm or pnpm).
  • Generate and commit the appropriate lockfile (package-lock.json for npm, pnpm-lock.yaml for pnpm).
  • Update the CI workflow to use npm ci (or pnpm install --frozen-lockfile) instead of a bare install command.
  • Ensure .gitignore does NOT exclude the lockfile.

Acceptance Criteria

  • The lockfile is committed to the repository.
  • CI installs dependencies using the lockfile (frozen/ci mode).
  • A fresh install from the lockfile produces the same dependency tree.

References

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

## Context The frontend directory has no committed lockfile, so `npm install` or `pnpm install` may resolve different dependency versions on different machines or in CI, leading to non-reproducible builds. ## Work - Determine which package manager the project uses (npm or pnpm). - Generate and commit the appropriate lockfile (`package-lock.json` for npm, `pnpm-lock.yaml` for pnpm). - Update the CI workflow to use `npm ci` (or `pnpm install --frozen-lockfile`) instead of a bare install command. - Ensure `.gitignore` does NOT exclude the lockfile. ## Acceptance Criteria - The lockfile is committed to the repository. - CI installs dependencies using the lockfile (frozen/ci mode). - A fresh install from the lockfile produces the same dependency tree. ## References Roadmap: P2 — Frontend — Missing package-lock.json or pnpm-lock.yaml.
AI-Manager added the P2agent-readysmall labels 2026-03-26 17:23:12 +00:00
Author
Owner

Closing: package-lock.json exists in the frontend directory. Resolved.

Closing: package-lock.json exists in the frontend directory. Resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#144