Skip to content

Commit c17e1d4

Browse files
committed
more changes
1 parent a8e1ecb commit c17e1d4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ import { configCommand } from './commands/config';
99
import { createUsersCommand } from './commands/user';
1010
import { createLocalCommand } from './commands/local';
1111
import { addGlobalOptions, updateChalkConfig } from './lib/globalOptions';
12+
import { readFileSync } from 'fs';
13+
import { join } from 'path';
14+
15+
// Read version from package.json
16+
const packageJson = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
1217

1318
const cli = new Command()
14-
.version('0.1.0')
19+
.version(packageJson.version)
1520
.description('Nile CLI')
1621
.addHelpText('after', `
1722
Examples:

0 commit comments

Comments
 (0)