Skip to content

fix: update lockfile version to 3 for npm compatibility#13

Merged
hiragram merged 2 commits into
mainfrom
fix/lockfile-version
Jul 3, 2025
Merged

fix: update lockfile version to 3 for npm compatibility#13
hiragram merged 2 commits into
mainfrom
fix/lockfile-version

Conversation

@hiragram

@hiragram hiragram commented Jul 3, 2025

Copy link
Copy Markdown
Owner

Summary

  • Fix lockfile version issue where npx cccsc@latest add was creating lockfiles with version 1
  • Update default lockfile version to 3 for current npm compatibility
  • Replace magic number with CURRENT_LOCKFILE_VERSION constant

Test plan

  • Run npx cccsc@latest add and verify lockfile version is 3
  • Verify existing functionality remains intact

🤖 Generated with Claude Code

npx cccsc@latest add was creating lockfiles with version 1, but current npm versions expect version 3. Added CURRENT_LOCKFILE_VERSION constant to replace magic number.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hiragram
hiragram enabled auto-merge July 3, 2025 06:28
Update test assertion to match the new lockfile version constant.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hiragram
hiragram merged commit c0be9e3 into main Jul 3, 2025
4 checks passed
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