You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: corrupt package-lock.json on main — 9 unresolved git-stash conflict blocks #720
package-lock.json on main contains 9 unresolved `git stash` conflict blocks (27 conflict-marker lines), making it invalid JSON. npm ci from a fresh clone fails.
How it was found
Surfaced during /release prep for v2.6.2. The pre-flight "clean working tree" check passed because the corruption is committed, not a working-tree change — so git status is clean and the bad file sits at HEAD.
Root cause
Introduced by commit 512840f (PR #716, fix #711). A git stash pop during that branch's prep left conflict markers in package-lock.json that were committed. Each block is the same shape — a disagreement over whether a transitive package carries "dev": true:
npm does not publish package-lock.json to the tarball, so npm consumers were unaffected.
npm install/tsc/vitest tolerate the existing node_modules; only npm ci (fresh clone) parses the lockfile strictly.
Fix
Regenerate the lockfile via npm install --package-lock-only, which recomputes the dependency tree deterministically and drops the spurious "dev": true flags (these packages are production-reachable). Result: 0 conflict markers, valid JSON, npm ci --dry-run passes.
Follow-up (separate)
Consider an npm ci-on-a-fresh-checkout CI gate (or a lockfile-conflict-marker lint) so a corrupt lockfile can't reach main again.
Activity
fix(#720): resolve corrupt package-lock.json — 9 stash-conflict blocks (