@akanjs/cli 0.0.114 → 0.0.115

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/cjs/index.js CHANGED
@@ -1996,8 +1996,8 @@ var getArgumentValue = async (argMeta, value, workspace) => {
1996
1996
  throw new Error(`Invalid system type: ${argMeta.type}`);
1997
1997
  };
1998
1998
  var runCommands = async (...commands) => {
1999
- const hasPackageJson = import_fs7.default.existsSync(`${__dirname}/package.json`);
2000
- const version = hasPackageJson ? JSON.parse(import_fs7.default.readFileSync(`${__dirname}/package.json`, "utf8")).version : "0.0.1";
1999
+ const hasPackageJson = import_fs7.default.existsSync(`${__dirname}/../package.json`);
2000
+ const version = hasPackageJson ? JSON.parse(import_fs7.default.readFileSync(`${__dirname}/../package.json`, "utf8")).version : "0.0.1";
2001
2001
  import_commander.program.version(version).description("Akan CLI");
2002
2002
  for (const command of commands) {
2003
2003
  const targetMetas = getTargetMetas(command);
package/esm/index.js CHANGED
@@ -2230,8 +2230,8 @@ var init_command = __esm({
2230
2230
  throw new Error(`Invalid system type: ${argMeta.type}`);
2231
2231
  };
2232
2232
  runCommands = async (...commands) => {
2233
- const hasPackageJson = fs9.existsSync(`${__dirname}/package.json`);
2234
- const version = hasPackageJson ? JSON.parse(fs9.readFileSync(`${__dirname}/package.json`, "utf8")).version : "0.0.1";
2233
+ const hasPackageJson = fs9.existsSync(`${__dirname}/../package.json`);
2234
+ const version = hasPackageJson ? JSON.parse(fs9.readFileSync(`${__dirname}/../package.json`, "utf8")).version : "0.0.1";
2235
2235
  program.version(version).description("Akan CLI");
2236
2236
  for (const command of commands) {
2237
2237
  const targetMetas = getTargetMetas(command);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "@akanjs/cli",
4
- "version": "0.0.114",
4
+ "version": "0.0.115",
5
5
  "bin": {
6
6
  "akan": "cjs/index.js"
7
7
  },