@eide/foir-cli 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -5,7 +5,10 @@ import { fileURLToPath } from 'url';
5
5
  const __filename = fileURLToPath(import.meta.url);
6
6
  const __dirname = dirname(__filename);
7
7
  config({ path: resolve(__dirname, '../.env.local') });
8
+ import { createRequire } from 'module';
8
9
  import { Command } from 'commander';
10
+ const require = createRequire(import.meta.url);
11
+ const { version } = require('../package.json');
9
12
  // Auth commands
10
13
  import { registerLoginCommand } from './commands/login.js';
11
14
  import { registerLogoutCommand } from './commands/logout.js';
@@ -33,8 +36,8 @@ import { registerVariantCatalogCommands } from './commands/variant-catalog.js';
33
36
  const program = new Command();
34
37
  program
35
38
  .name('foir')
36
- .description('Universal platform CLI for EIDE')
37
- .version('0.1.0')
39
+ .description('CLI for Foir platform')
40
+ .version(version)
38
41
  .option('--api-url <url>', 'API endpoint URL')
39
42
  .option('--json', 'Output as JSON')
40
43
  .option('--jsonl', 'Output as JSON Lines')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eide/foir-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Universal platform CLI for EIDE — scriptable, composable resource management",
5
5
  "type": "module",
6
6
  "publishConfig": {