cyberlegion 0.1.0 → 0.3.0

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.
@@ -3,4 +3,5 @@ import { dirname, join } from 'node:path'
3
3
  import { fileURLToPath } from 'node:url'
4
4
 
5
5
  const dir = dirname(fileURLToPath(import.meta.url))
6
- await import(join(dir, '..', 'dist', 'cli.mjs'))
6
+ const { runCli } = await import(join(dir, '..', 'dist', 'cli.mjs'))
7
+ await runCli()
package/dist/cli.d.mts CHANGED
@@ -1 +1,12 @@
1
- export { };
1
+ //#region src/cli.d.ts
2
+ /**
3
+ * Run the CLI. Exported rather than executed at module scope so the command bodies are reachable
4
+ * from a test: with a bare `program.parseAsync(process.argv)` here, importing this module ran the
5
+ * whole CLI, so every `.action()` body — and every option wire inside it — was unreachable, and a
6
+ * flag that stopped being forwarded changed real behavior with the suite green.
7
+ *
8
+ * `bin/cyberlegion.mjs` calls this; nothing else should.
9
+ */
10
+ declare function runCli(argv?: string[]): Promise<void>;
11
+ //#endregion
12
+ export { runCli };