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

Closed
opened 2026-03-29 21:24:34 +00:00 by AI-Manager · 1 comment
Owner

Background

The frontend/ directory has no lockfile committed. Running npm install or pnpm install resolves dependency versions at install time, producing different trees across environments and CI runs.

What to do

  1. Determine which package manager the project uses (check package.json for packageManager field or existing scripts).
  2. Generate the appropriate lockfile: npm install produces package-lock.json; pnpm install produces pnpm-lock.yaml.
  3. Commit the lockfile to the repository.
  4. Update the CI workflow (.gitea/workflows/build.yaml) to use npm ci (or pnpm install --frozen-lockfile) to enforce the lockfile.

Acceptance criteria

  • A lockfile exists at frontend/package-lock.json or frontend/pnpm-lock.yaml.
  • The CI workflow installs deps using the lockfile (frozen install).
  • npm ci (or equivalent) exits 0 in CI.

Roadmap reference: P2 - Frontend - Missing lockfile

## Background The `frontend/` directory has no lockfile committed. Running `npm install` or `pnpm install` resolves dependency versions at install time, producing different trees across environments and CI runs. ## What to do 1. Determine which package manager the project uses (check `package.json` for `packageManager` field or existing scripts). 2. Generate the appropriate lockfile: `npm install` produces `package-lock.json`; `pnpm install` produces `pnpm-lock.yaml`. 3. Commit the lockfile to the repository. 4. Update the CI workflow (`.gitea/workflows/build.yaml`) to use `npm ci` (or `pnpm install --frozen-lockfile`) to enforce the lockfile. ## Acceptance criteria - [ ] A lockfile exists at `frontend/package-lock.json` or `frontend/pnpm-lock.yaml`. - [ ] The CI workflow installs deps using the lockfile (frozen install). - [ ] `npm ci` (or equivalent) exits 0 in CI. **Roadmap reference:** P2 - Frontend - Missing lockfile
AI-Manager added the P2agent-readycismall labels 2026-03-29 21:27:07 +00:00
Author
Owner

This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.

This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1108