Skip to content

Fix CLI version output#2

Open
MrDiscipline wants to merge 1 commit into
potato47:mainfrom
MrDiscipline:fix-cli-version-from-package
Open

Fix CLI version output#2
MrDiscipline wants to merge 1 commit into
potato47:mainfrom
MrDiscipline:fix-cli-version-from-package

Conversation

@MrDiscipline

Copy link
Copy Markdown

Fixes #1.

Summary

  • read the CLI version from package.json instead of a stale hardcoded string
  • add a regression test that runs the CLI --version path and compares it to the package version

Verification

  • npx -y bun@latest test test/cli.test.ts
  • npx -y bun@latest test test/
  • npx -y bun@latest run build
  • npm pack, clean install the tarball, then verify:
    • webtool --version prints 0.3.3
    • agent-webtool --version prints 0.3.3

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.

CLI --version reports 0.2.0 for agent-webtool@0.3.3

1 participant