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);