Skip to content

fix: source CLI --version output from package.json - #41

Merged
woss merged 1 commit into
mainfrom
fix/cli-version-from-package
Oct 21, 2026
Merged

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

Conversation

@woss

@woss woss commented Oct 21, 2026

Copy link
Copy Markdown
Owner

CLI printed a hardcoded 0.1.0 while the package is at 0.7.1. Single-source the version from package.json via src/version.ts (Node-only import chain, never in the browser bundle); use it in the --version/-ver handler, help banner, daemon path, and tests.

  • pnpm build clean (attw + publint pass)
  • node dist/cli.js --version → 0.7.1
  • exiftool.test.ts 17/17, cli/cli.test.ts 101/101

CLI printed a hardcoded 0.1.0 while the package is at 0.7.1.
Add src/version.ts (createRequire on package.json, Node-only paths
exiftool.ts/cli.ts, never in the browser bundle) and use VERSION in
the --version handler, help banner, and tests.
@woss
woss merged commit 4c40778 into main Oct 21, 2026
1 check passed
@woss
woss deleted the fix/cli-version-from-package branch October 21, 2026 15:08
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