From fd4dffcbf4751ec4bd86a5159c9366af381cfe26 Mon Sep 17 00:00:00 2001 From: bryanlundberg <119996547+bryanlundberg@users.noreply.github.com> Date: Sat, 28 Nov 2026 06:04:22 -0600 Subject: [PATCH] fix(cli): print the wizard version for --version under npx --- src/cli/wizard.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/wizard.ts b/src/cli/wizard.ts index d464ec57f..0e2d837cc 100644 --- a/src/cli/wizard.ts +++ b/src/cli/wizard.ts @@ -17,6 +17,7 @@ import { configureLogFile } from '@utils/debug'; import { toCommandModule, type Command } from './commands/command'; import { ErrorCodes } from '@shared/errors'; import { emitWizardError } from '@shared/errors'; +import { VERSION } from '@shared/version'; /** * Global yargs options applied to every command. These are read from the @@ -257,7 +258,8 @@ export class Wizard { }) .help() .alias('help', 'h') - .version() + // Under npx, yargs would read npx's own package.json, which has no version. + .version(VERSION) .alias('version', 'v'); }