Skip to content

fix: sync package-lock metadata with package.json - #131

Open
sergiomaldo wants to merge 1 commit into
LegalQuants:mainfrom
sergiomaldo:fix/package-lock-version-drift
Open

fix: sync package-lock metadata with package.json#131
sergiomaldo wants to merge 1 commit into
LegalQuants:mainfrom
sergiomaldo:fix/package-lock-version-drift

Conversation

@sergiomaldo

Copy link
Copy Markdown

package-lock.json records "version": "0.0.1" while package.json is at 0.6.2, and
the lockfile's root package entry carries no license field.

Any npm install silently rewrites both, so a fresh clone ends up with a modified
lockfile in the worktree before any work has been done. That dirty file is easy to stage
by accident into an unrelated pull request.

Changes

Sync the metadata by running npm install --package-lock-only. This touches only the
version and license fields — 3 insertions, 2 deletions. No dependency is added,
removed, or re-resolved.

Verified idempotent: a second npm install --package-lock-only after this change
produces no further diff.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SMqm8tGT3ksTtYgqPao6kF

package-lock.json recorded version 0.0.1 while package.json is at 0.6.2,
and carried no license field. Any 'npm install' silently rewrites both,
leaving a modified lockfile in the worktree on a fresh clone. That dirty
file is easy to stage by accident into an unrelated pull request.

Sync the metadata. This touches only the version and license fields; no
dependency is added, removed, or re-resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant