@yoamigo.com/cli 0.1.0 → 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.
- package/dist/index.js +5 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import "dotenv/config";
|
|
4
5
|
import { Command as Command5 } from "commander";
|
|
6
|
+
import { createRequire } from "module";
|
|
5
7
|
|
|
6
8
|
// src/commands/login.ts
|
|
7
9
|
import { Command } from "commander";
|
|
@@ -354,8 +356,10 @@ async function collectFilesRecursive(dir) {
|
|
|
354
356
|
}
|
|
355
357
|
|
|
356
358
|
// src/index.ts
|
|
359
|
+
var require2 = createRequire(import.meta.url);
|
|
360
|
+
var pkg = require2("../package.json");
|
|
357
361
|
var program = new Command5();
|
|
358
|
-
program.name("yoamigo").description("CLI for creating and managing YoAmigo templates").version(
|
|
362
|
+
program.name("yoamigo").description("CLI for creating and managing YoAmigo templates").version(pkg.version, "-v, --version", "output the current version");
|
|
359
363
|
program.addCommand(loginCommand);
|
|
360
364
|
program.addCommand(initCommand);
|
|
361
365
|
program.addCommand(devCommand);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoamigo.com/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI for creating and managing YoAmigo templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -45,14 +45,15 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"commander": "^14.0.2",
|
|
47
47
|
"chalk": "^5.6.2",
|
|
48
|
+
"dotenv": "^16.4.7",
|
|
48
49
|
"ora": "^9.0.0",
|
|
49
50
|
"@inquirer/prompts": "^8.1.0",
|
|
50
51
|
"fs-extra": "^11.3.2"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@types/fs-extra": "^
|
|
54
|
+
"@types/fs-extra": "^11.0.4",
|
|
54
55
|
"@types/node": "^22.10.5",
|
|
55
|
-
"tsup": "^
|
|
56
|
+
"tsup": "^8.5.1",
|
|
56
57
|
"typescript": "^5.9.3"
|
|
57
58
|
}
|
|
58
59
|
}
|