Skip to content

fix: read CLI version from package.json#75

Merged
ldraney merged 1 commit intomainfrom
74-fix-cli-version
Jan 28, 2026
Merged

fix: read CLI version from package.json#75
ldraney merged 1 commit intomainfrom
74-fix-cli-version

Conversation

@ldraney
Copy link
Owner

@ldraney ldraney commented Jan 28, 2026

Summary

  • CLI --version was hardcoded to 0.1.0 in src/index.ts
  • Now reads version from package.json at runtime so it stays in sync automatically

Fixes #74

Test plan

  • npm run build succeeds
  • node dist/index.js --version reports 0.2.2
  • npx @ldraney/github-mcp@latest --version reports correct version after publish

🤖 Generated with Claude Code

The --version flag was reporting 0.1.0 because it was hardcoded in
src/index.ts. Now reads from package.json so it stays in sync.

Fixes #74

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ldraney ldraney merged commit f477d36 into main Jan 28, 2026
1 check passed
@ldraney ldraney deleted the 74-fix-cli-version branch January 28, 2026 19:30
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.

fix: CLI --version reports hardcoded 0.1.0 instead of package version

1 participant