Skip to content

fix(cli): report real version from package.json#59

Merged
lex00 merged 1 commit into
mainfrom
fix/cli-version
Jun 20, 2026
Merged

fix(cli): report real version from package.json#59
lex00 merged 1 commit into
mainfrom
fix/cli-version

Conversation

@lex00

@lex00 lex00 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

The 0.2.0 bin smoke-test caught it: gitlab-warden --version printed 0.1.0. The version was a hardcoded string literal that just release (which bumps only package.json) never touched — so every release would lie about its version.

Fix: import pkg.version from package.json (esbuild inlines it at build time → always matches the published version). Verified: with package.json at 0.2.0, the built CLI now prints 0.2.0.

🤖 Generated with Claude Code

--version was hardcoded "0.1.0", so every release misreported itself
(0.2.0 printed 0.1.0). Inline pkg.version from package.json at build time
via a JSON import (resolveJsonModule); --version now always matches the
published version.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lex00 lex00 merged commit b454990 into main Jun 20, 2026
1 check 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