@kaddo/cli 3.7.1 → 3.7.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.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import { createRequire } from "module";
|
|
4
5
|
import { Command } from "commander";
|
|
5
6
|
|
|
6
7
|
// src/commands/init.ts
|
|
@@ -8435,8 +8436,10 @@ async function runBootstrap(dir = cwd()) {
|
|
|
8435
8436
|
}
|
|
8436
8437
|
|
|
8437
8438
|
// src/index.ts
|
|
8439
|
+
var require2 = createRequire(import.meta.url);
|
|
8440
|
+
var { version } = require2("../package.json");
|
|
8438
8441
|
var program = new Command();
|
|
8439
|
-
program.name("kaddo").description("Knowledge Driven Development toolkit").version(
|
|
8442
|
+
program.name("kaddo").description("Knowledge Driven Development toolkit").version(version);
|
|
8440
8443
|
program.command("init").description("Initialize Kaddo in the current project").action(async () => {
|
|
8441
8444
|
await runInit();
|
|
8442
8445
|
});
|