@rigstate/cli 0.7.17 → 0.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +5 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { createRequire } from 'module';
|
|
3
2
|
import { Command } from 'commander';
|
|
4
3
|
import chalk from 'chalk';
|
|
5
4
|
import { createLoginCommand } from './commands/login.js';
|
|
@@ -27,6 +26,9 @@ import { createCouncilCommand } from './commands/council.js';
|
|
|
27
26
|
import { checkVersion } from './utils/version.js';
|
|
28
27
|
import dotenv from 'dotenv';
|
|
29
28
|
|
|
29
|
+
const require = createRequire(import.meta.url);
|
|
30
|
+
const pkg = require('../package.json');
|
|
31
|
+
|
|
30
32
|
// Load environment variables
|
|
31
33
|
dotenv.config();
|
|
32
34
|
|
|
@@ -35,7 +37,7 @@ const program = new Command();
|
|
|
35
37
|
program
|
|
36
38
|
.name('rigstate')
|
|
37
39
|
.description('CLI for Rigstate - The AI-Native Dev Studio')
|
|
38
|
-
.version(
|
|
40
|
+
.version(pkg.version);
|
|
39
41
|
|
|
40
42
|
// Register commands
|
|
41
43
|
program.addCommand(createLoginCommand());
|