airgen-cli 0.1.4 → 0.1.5

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/index.js +4 -1
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
2
3
  import { Command } from "commander";
3
4
  import { AirgenClient } from "./client.js";
4
5
  import { loadConfig } from "./config.js";
6
+ const require = createRequire(import.meta.url);
7
+ const { version } = require("../package.json");
5
8
  import { setJsonMode } from "./output.js";
6
9
  import { registerTenantCommands } from "./commands/tenants.js";
7
10
  import { registerProjectCommands } from "./commands/projects.js";
@@ -39,7 +42,7 @@ const clientProxy = new Proxy({}, {
39
42
  program
40
43
  .name("airgen")
41
44
  .description("AIRGen CLI — requirements engineering from the command line")
42
- .version("0.1.0")
45
+ .version(version)
43
46
  .option("--json", "Output as JSON")
44
47
  .hook("preAction", (_thisCommand, actionCommand) => {
45
48
  let cmd = actionCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airgen-cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "AIRGen CLI — requirements engineering from the command line",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -8,7 +8,8 @@
8
8
  "airgen": "dist/index.js"
9
9
  },
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "package.json"
12
13
  ],
13
14
  "scripts": {
14
15
  "build": "tsc -p tsconfig.json",