From b2238c7b6f7269d0f889ec4617f61b3d2abedaa1 Mon Sep 17 00:00:00 2001 From: Christian Rodriguez Date: Mon, 7 Jul 2025 12:37:50 -0500 Subject: [PATCH] Show true core version on command line Replaces the hard-coded 0.0.1 with the real version. --- packages/core/src/cli/cli-executable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/cli/cli-executable.ts b/packages/core/src/cli/cli-executable.ts index 764131ea..5609a6b3 100644 --- a/packages/core/src/cli/cli-executable.ts +++ b/packages/core/src/cli/cli-executable.ts @@ -11,6 +11,7 @@ const cliExecId = new Date().toISOString(); import * as _ from 'lodash-es'; import Debug from 'debug'; import { DmnoCommand } from './lib/dmno-command'; +import packageJson from '../../package.json'; import { addDocsCommand } from './lib/cli-schema-generation'; import { customizeHelp } from './lib/help-customizations'; @@ -18,7 +19,6 @@ import { getCliRunCtx, initCliRunCtx } from './lib/cli-ctx'; import { CliExitError } from './lib/cli-error'; import { WATCHING_FILES_MESSAGE } from './lib/watch-mode-helpers'; - import { ResolveCommand } from './commands/resolve.command'; import { RunCommand } from './commands/run.command'; import { DevCommand } from './commands/dev.command'; @@ -31,7 +31,7 @@ const debug = Debug('dmno:cli'); const program = new DmnoCommand('dmno') .description('dmnno cli - https://dmno.dev') - .version('0.0.1'); + .version(packageJson.version); program.addCommand(ResolveCommand); program.addCommand(RunCommand);