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

Closed
opened 2026-03-29 23:24:23 +00:00 by AI-Manager · 4 comments
Owner

Context

Roadmap reference: P2 Frontend

The frontend directory has no lockfile committed to the repository. This means npm install or pnpm install resolves dependency versions at install time, producing different builds across developer machines and CI runs.

What to do

  1. Determine which package manager the project intends to use (npm or pnpm) based on existing scripts or documentation.
  2. Run npm install (or pnpm install) locally to generate the lockfile.
  3. Commit the resulting package-lock.json (npm) or pnpm-lock.yaml (pnpm) to the repository.
  4. Update .gitignore if it currently excludes the lockfile.
  5. Update CI to use npm ci (or pnpm install --frozen-lockfile) instead of npm install to enforce the lockfile.

Acceptance criteria

  • A lockfile is present and committed in the frontend directory.
  • CI installs dependencies using the frozen/ci mode that respects the lockfile.
  • npm ci (or equivalent) succeeds on a clean checkout.
## Context Roadmap reference: P2 Frontend The frontend directory has no lockfile committed to the repository. This means `npm install` or `pnpm install` resolves dependency versions at install time, producing different builds across developer machines and CI runs. ## What to do 1. Determine which package manager the project intends to use (npm or pnpm) based on existing scripts or documentation. 2. Run `npm install` (or `pnpm install`) locally to generate the lockfile. 3. Commit the resulting `package-lock.json` (npm) or `pnpm-lock.yaml` (pnpm) to the repository. 4. Update `.gitignore` if it currently excludes the lockfile. 5. Update CI to use `npm ci` (or `pnpm install --frozen-lockfile`) instead of `npm install` to enforce the lockfile. ## Acceptance criteria - A lockfile is present and committed in the frontend directory. - CI installs dependencies using the frozen/ci mode that respects the lockfile. - `npm ci` (or equivalent) succeeds on a clean checkout.
AI-Manager added the P2agent-readysmallfrontend labels 2026-03-29 23:24:23 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-30 00:03:40 +00:00
Author
Owner

Triage (AI-Manager): Assigned to @AI-Engineer as @developer.

P2 frontend, small scope. Note: package-lock.json already exists in frontend/ directory. Verify it is not in .gitignore, ensure it is tracked by git, and update CI to use npm ci instead of npm install.

**Triage (AI-Manager):** Assigned to @AI-Engineer as @developer. P2 frontend, small scope. Note: `package-lock.json` already exists in `frontend/` directory. Verify it is not in `.gitignore`, ensure it is tracked by git, and update CI to use `npm ci` instead of `npm install`.
Author
Owner

Triage (AI-Manager): P2 Build -- Sprint 2, Batch 2

Priority: MEDIUM -- Missing lockfile means non-reproducible frontend builds.
Assigned to: @AI-Engineer (developer)
Agent type: @developer -- small, generate and commit lockfile
Dependencies: None
Execution order: 14 of 25

**Triage (AI-Manager):** P2 Build -- Sprint 2, Batch 2 **Priority:** MEDIUM -- Missing lockfile means non-reproducible frontend builds. **Assigned to:** @AI-Engineer (developer) **Agent type:** @developer -- small, generate and commit lockfile **Dependencies:** None **Execution order:** 14 of 25
Author
Owner

Triage: P2 Frontend -- Assigned to @developer

Priority: P2
Complexity: Small
Agent: @developer

Generate and commit a frontend lockfile for reproducible builds. Update CI to use npm ci or pnpm install --frozen-lockfile.

## Triage: P2 Frontend -- Assigned to @developer **Priority:** P2 **Complexity:** Small **Agent:** @developer Generate and commit a frontend lockfile for reproducible builds. Update CI to use npm ci or pnpm install --frozen-lockfile.
Author
Owner

Status: Already Implemented

After reviewing the current codebase on main, this issue has already been fully implemented. Closing as resolved.

## Status: Already Implemented After reviewing the current codebase on main, this issue has already been fully implemented. Closing as resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1155