@akanjs/cli 0.0.72 → 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.
Files changed (2) hide show
  1. package/index.js +12 -10
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -1963,8 +1963,8 @@ var getArgumentValue = async (argMeta, value, workspace) => {
1963
1963
  throw new Error(`Invalid system type: ${argMeta.type}`);
1964
1964
  };
1965
1965
  var runCommands = async (...commands) => {
1966
- const hasPackageJson = import_fs10.default.existsSync("package.json");
1967
- const version = hasPackageJson ? JSON.parse(import_fs10.default.readFileSync("package.json", "utf8")).version : "0.0.1";
1966
+ const hasPackageJson = import_fs10.default.existsSync(`${__dirname}/package.json`);
1967
+ const version = hasPackageJson ? JSON.parse(import_fs10.default.readFileSync(`${__dirname}/package.json`, "utf8")).version : "0.0.1";
1968
1968
  import_commander.program.version(version).description("Akan CLI");
1969
1969
  for (const command of commands) {
1970
1970
  const targetMetas = getTargetMetas(command);
@@ -4163,14 +4163,16 @@ ${import_chalk.default.green("\u27A4")} Authentication Required`));
4163
4163
  const distPackageJson = workspace.readJson(`dist/pkgs/${library}/package.json`);
4164
4164
  const newDistPackageJson = {
4165
4165
  ...distPackageJson,
4166
- ...distPackageJson.dependencies ? {
4167
- dependencies: Object.fromEntries(
4168
- Object.entries(distPackageJson.dependencies).map(([key, value]) => [
4169
- key,
4170
- value.startsWith("^") ? value : `^${value}`
4171
- ])
4172
- )
4173
- } : {},
4166
+ // ...(distPackageJson.dependencies
4167
+ // ? {
4168
+ // dependencies: Object.fromEntries(
4169
+ // Object.entries(distPackageJson.dependencies).map(([key, value]) => [
4170
+ // key,
4171
+ // value.startsWith("^") ? value : `^${value}`,
4172
+ // ])
4173
+ // ),
4174
+ // }
4175
+ // : {}),
4174
4176
  version: nextVersion
4175
4177
  };
4176
4178
  workspace.writeJson(`dist/pkgs/${library}/package.json`, newDistPackageJson);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "@akanjs/cli",
4
- "version": "0.0.72",
4
+ "version": "0.0.73",
5
5
  "bin": {
6
6
  "akan": "index.js"
7
7
  },
@@ -22,7 +22,7 @@
22
22
  "@langchain/core": "^0.3.56",
23
23
  "@langchain/openai": "^0.5.10",
24
24
  "@next/bundle-analyzer": "^15.1.3",
25
- "@nx/devkit": "^20.7.2",
25
+ "@nx/devkit": "20.7.2",
26
26
  "@trapezedev/project": "^7.1.3",
27
27
  "@vitejs/plugin-react": "^4.4.1",
28
28
  "axios": "^1.7.9",
@@ -36,14 +36,14 @@
36
36
  "form-data": "^4.0.1",
37
37
  "js-yaml": "^4.1.0",
38
38
  "latest-version": "^9.0.0",
39
- "next-pwa": "^5.6.0",
39
+ "next-pwa": "5.6.0",
40
40
  "open": "^10.1.1",
41
41
  "ora": "^3.4.0",
42
42
  "pluralize": "^8.0.0",
43
43
  "qrcode": "^1.5.4",
44
44
  "reflect-metadata": "^0.2.2",
45
45
  "tunnel-ssh": "^5.2.0",
46
- "typescript": "^5.8.3",
46
+ "typescript": "5.8.3",
47
47
  "uuid": "^11.0.3",
48
48
  "vite": "^6.3.4",
49
49
  "vite-plugin-node-polyfills": "^0.23.0",