Skip to content

Open summit - add version support#68

Open
rakeshpetit wants to merge 3 commits into
mainfrom
open-summit/version
Open

Open summit - add version support#68
rakeshpetit wants to merge 3 commits into
mainfrom
open-summit/version

Conversation

@rakeshpetit

@rakeshpetit rakeshpetit commented Oct 28, 2024

Copy link
Copy Markdown
Contributor

This PR supports a version option to the Belt CLI. Users should be able to use:

npx create-belt-app --version
npx create-belt-app -V

which would output the version of the Belt CLI being used.

Changes

  • src/cli.ts — chains .version(packageJson.version) into the root program setup alongside .name() and .description().
  • Moves printWelcome() to after program.parse() so Commander's natural process exit on --version suppresses the welcome banner without any extra logic.
  • tsconfig.json — adds resolveJsonModule: true to support the package.json import.

@rakeshpetit rakeshpetit force-pushed the open-summit/version branch from 511df6f to cecd31f Compare June 5, 2026 11:14
@rakeshpetit rakeshpetit changed the title Open summit/version support Open summit - add version support Jun 5, 2026
@rakeshpetit rakeshpetit marked this pull request as ready for review June 5, 2026 11:57
@rakeshpetit rakeshpetit requested a review from codeofdiego as a code owner June 5, 2026 11:57
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.

2 participants