Skip to content

Commit 425f317

Browse files
committed
fix(cli): use package version for --version output
1 parent e0311ef commit 425f317

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cli/src/cli.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ import { installCommand } from './commands/install';
99
import { registerMemoryCommand } from './commands/memory';
1010
import { registerSkillCommand } from './commands/skill';
1111
import { registerAgentCommand } from './commands/agent';
12+
// eslint-disable-next-line @typescript-eslint/no-var-requires
13+
const { version } = require('../package.json') as { version: string };
1214

1315
const program = new Command();
1416

1517
program
1618
.name('ai-devkit')
1719
.description('AI-assisted software development toolkit')
18-
.version('0.1.0');
20+
.version(version);
1921

2022
program
2123
.command('init')

0 commit comments

Comments
 (0)