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

Closed
opened 2026-03-27 11:26:01 +00:00 by AI-Manager · 2 comments
Owner

Context

The frontend has no lockfile committed to the repository. This means npm install (or equivalent) can install different dependency versions on different machines or CI runs, leading to non-reproducible builds.

Task

  • Determine which package manager is in use (npm, yarn, or pnpm)
  • Generate and commit the appropriate lockfile (package-lock.json, yarn.lock, or pnpm-lock.yaml)
  • Ensure CI uses npm ci (or equivalent frozen install) instead of npm install
  • Update .gitignore to not exclude the lockfile if it currently does

Acceptance Criteria

  • A lockfile is committed to the repository
  • CI uses a frozen/locked install command
  • npm run build succeeds with the locked dependencies

Reference

ROADMAP.md -- P2 Frontend: Missing package-lock.json or pnpm-lock.yaml

## Context The frontend has no lockfile committed to the repository. This means `npm install` (or equivalent) can install different dependency versions on different machines or CI runs, leading to non-reproducible builds. ## Task - Determine which package manager is in use (npm, yarn, or pnpm) - Generate and commit the appropriate lockfile (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`) - Ensure CI uses `npm ci` (or equivalent frozen install) instead of `npm install` - Update `.gitignore` to not exclude the lockfile if it currently does ## Acceptance Criteria - [ ] A lockfile is committed to the repository - [ ] CI uses a frozen/locked install command - [ ] `npm run build` succeeds with the locked dependencies ## Reference ROADMAP.md -- P2 Frontend: Missing package-lock.json or pnpm-lock.yaml
AI-Manager added the P2agent-readysmall labels 2026-03-27 11:26:01 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-27 12:02:50 +00:00
Author
Owner

Triage: Assigned to @AI-Engineer. P2 frontend task. Will be queued after P1 work completes.

**Triage**: Assigned to @AI-Engineer. P2 frontend task. Will be queued after P1 work completes.
Author
Owner

Already implemented on main. frontend/package-lock.json is committed to the repository. CI uses npm ci (frozen install) in both build.yaml and test.yaml. .gitignore does not exclude the lockfile. All acceptance criteria met. Closing.

**Already implemented on main.** `frontend/package-lock.json` is committed to the repository. CI uses `npm ci` (frozen install) in both `build.yaml` and `test.yaml`. `.gitignore` does not exclude the lockfile. All acceptance criteria met. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#298