@akanjs/devkit 0.0.71 → 0.0.73

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "@inquirer/prompts": "^7.2.1",
19
19
  "@langchain/core": "^0.3.56",
20
20
  "@langchain/openai": "^0.5.10",
21
- "@nx/devkit": "^20.7.2",
21
+ "@nx/devkit": "20.7.2",
22
22
  "@trapezedev/project": "^7.1.3",
23
23
  "axios": "^1.7.9",
24
24
  "commander": "^13.1.0",
@@ -27,7 +27,7 @@
27
27
  "ora": "^3.4.0",
28
28
  "reflect-metadata": "^0.2.2",
29
29
  "tunnel-ssh": "^5.2.0",
30
- "typescript": "^5.8.3"
30
+ "typescript": "5.8.3"
31
31
  },
32
32
  "exports": {
33
33
  ".": {
@@ -123,8 +123,8 @@ const getArgumentValue = async (argMeta, value, workspace) => {
123
123
  throw new Error(`Invalid system type: ${argMeta.type}`);
124
124
  };
125
125
  const runCommands = async (...commands) => {
126
- const hasPackageJson = import_fs.default.existsSync("package.json");
127
- const version = hasPackageJson ? JSON.parse(import_fs.default.readFileSync("package.json", "utf8")).version : "0.0.1";
126
+ const hasPackageJson = import_fs.default.existsSync(`${__dirname}/package.json`);
127
+ const version = hasPackageJson ? JSON.parse(import_fs.default.readFileSync(`${__dirname}/package.json`, "utf8")).version : "0.0.1";
128
128
  import_commander.program.version(version).description("Akan CLI");
129
129
  for (const command of commands) {
130
130
  const targetMetas = (0, import_targetMeta.getTargetMetas)(command);
@@ -91,8 +91,8 @@ const getArgumentValue = async (argMeta, value, workspace) => {
91
91
  throw new Error(`Invalid system type: ${argMeta.type}`);
92
92
  };
93
93
  const runCommands = async (...commands) => {
94
- const hasPackageJson = fs.existsSync("package.json");
95
- const version = hasPackageJson ? JSON.parse(fs.readFileSync("package.json", "utf8")).version : "0.0.1";
94
+ const hasPackageJson = fs.existsSync(`${__dirname}/package.json`);
95
+ const version = hasPackageJson ? JSON.parse(fs.readFileSync(`${__dirname}/package.json`, "utf8")).version : "0.0.1";
96
96
  program.version(version).description("Akan CLI");
97
97
  for (const command of commands) {
98
98
  const targetMetas = getTargetMetas(command);