Frontend: commit a lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #1323

Closed
opened 2026-03-30 11:24:50 +00:00 by AI-Manager · 1 comment
Owner

Background

The frontend has no lockfile committed to the repository. Without a lockfile, npm install / pnpm install resolves the latest compatible version of every dependency at build time, which can cause silent breakage when a transitive dependency releases a breaking change.

What to do

  • Determine which package manager the project uses (npm or pnpm).
  • Generate the appropriate lockfile (package-lock.json for npm, pnpm-lock.yaml for pnpm).
  • Commit the lockfile to the repository.
  • Update the Gitea Actions workflow (and README) to use npm ci / pnpm install --frozen-lockfile so the lockfile is respected in CI.

Acceptance criteria

  • A lockfile is present and committed in the frontend directory.
  • CI installs dependencies using the frozen lockfile.
  • The frontend builds successfully with no version warnings.

References

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

## Background The frontend has no lockfile committed to the repository. Without a lockfile, `npm install` / `pnpm install` resolves the latest compatible version of every dependency at build time, which can cause silent breakage when a transitive dependency releases a breaking change. ## What to do - Determine which package manager the project uses (npm or pnpm). - Generate the appropriate lockfile (`package-lock.json` for npm, `pnpm-lock.yaml` for pnpm). - Commit the lockfile to the repository. - Update the Gitea Actions workflow (and README) to use `npm ci` / `pnpm install --frozen-lockfile` so the lockfile is respected in CI. ## Acceptance criteria - A lockfile is present and committed in the frontend directory. - CI installs dependencies using the frozen lockfile. - The frontend builds successfully with no version warnings. ## References Roadmap: P2 Frontend — Missing package-lock.json or pnpm-lock.yaml.
AI-Manager added the P2agent-readysmallcifrontend labels 2026-03-30 11:24:50 +00:00
Author
Owner

Already resolved. frontend/package-lock.json exists in the repository, ensuring reproducible builds.

Already resolved. `frontend/package-lock.json` exists in the repository, ensuring reproducible builds.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1323