naracli 1.0.22 → 1.0.23

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/bin/nara-cli.ts CHANGED
@@ -4,10 +4,10 @@
4
4
 
5
5
  import { Command } from "commander";
6
6
  import { registerCommands } from "../src/cli/index";
7
- import { createRequire } from "node:module";
8
-
9
- const require = createRequire(import.meta.url);
10
- const { version } = require("../package.json");
7
+ // __CLI_VERSION__ is injected by the build script via esbuild --define.
8
+ // In dev mode (tsx), fall back to "dev".
9
+ declare const __CLI_VERSION__: string;
10
+ const version = typeof __CLI_VERSION__ !== "undefined" ? __CLI_VERSION__ : "dev";
11
11
 
12
12
  // Create program
13
13
  const program = new Command();