Skip to content

fix: report the installed version from changeset --version - #4

Merged
Makisuo merged 1 commit into
mainfrom
fix/cli-version-from-package-json
Nov 2, 2026
Merged

Makisuo merged 1 commit into
mainfrom
fix/cli-version-from-package-json

Conversation

@Makisuo

@Makisuo Makisuo commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

0.1.1, the first CI-published release, prints changeset v0.1.0 because src/cli.ts hardcoded the version. It now imports version from package.json (inlined by tsdown, and only that field ends up in the bundle), so it follows every version bump.

Verified: typecheck, 66 tests, node dist/bin.mjs --version and bun src/bin.ts --version both print v0.1.1. Includes a patch changeset.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The CLI hardcoded 0.1.0, so the 0.1.1 release still printed v0.1.0. The
version is now imported from package.json and inlined at build time.
@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d74231f9-612e-4912-8477-3dd238b63bd4
Commits

Reviewing files that changed from the base of the PR and between 16e17b2 and 581be81.

Files selected for processing: 3
  • .changeset/cli-version-from-package.md
  • src/cli.ts
  • tsconfig.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@Makisuo
Makisuo merged commit 41ed15a into main Nov 2, 2026
2 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