@coana-tech/cli 14.12.29 → 14.12.30

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/cli.mjs CHANGED
@@ -211209,7 +211209,17 @@ import { access as access4, readFile as readFile23 } from "fs/promises";
211209
211209
  import { join as join22, resolve as resolve25 } from "path";
211210
211210
  import util3 from "util";
211211
211211
  var { once: once7 } = import_lodash13.default;
211212
- var systemPython = once7(() => execFileSync2("which", ["python"], { encoding: "utf8" }).trim());
211212
+ var systemPython = once7(() => {
211213
+ try {
211214
+ return execFileSync2("which", ["python3"], { encoding: "utf8" }).trim();
211215
+ } catch {
211216
+ try {
211217
+ return execFileSync2("which", ["python"], { encoding: "utf8" }).trim();
211218
+ } catch {
211219
+ throw new Error("Couldn't find python3 or python. Please install Python 3.11 or higher.");
211220
+ }
211221
+ }
211222
+ });
211213
211223
  var hasPyenv = once7(async () => !(await execNeverFail("which pyenv")).error);
211214
211224
 
211215
211225
  // ../utils/src/pip-utils.ts
@@ -227458,7 +227468,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
227458
227468
  }
227459
227469
 
227460
227470
  // dist/version.js
227461
- var version2 = "14.12.29";
227471
+ var version2 = "14.12.30";
227462
227472
 
227463
227473
  // dist/cli-core.js
227464
227474
  var { mapValues, omit, partition, pick } = import_lodash15.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.29",
3
+ "version": "14.12.30",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -74124,7 +74124,17 @@ import { access as access2, readFile as readFile3 } from "fs/promises";
74124
74124
  import { join as join4, resolve as resolve3 } from "path";
74125
74125
  import util3 from "util";
74126
74126
  var { once } = import_lodash4.default;
74127
- var systemPython = once(() => execFileSync("which", ["python"], { encoding: "utf8" }).trim());
74127
+ var systemPython = once(() => {
74128
+ try {
74129
+ return execFileSync("which", ["python3"], { encoding: "utf8" }).trim();
74130
+ } catch {
74131
+ try {
74132
+ return execFileSync("which", ["python"], { encoding: "utf8" }).trim();
74133
+ } catch {
74134
+ throw new Error("Couldn't find python3 or python. Please install Python 3.11 or higher.");
74135
+ }
74136
+ }
74137
+ });
74128
74138
  var hasPyenv = once(async () => !(await execNeverFail("which pyenv")).error);
74129
74139
  async function getPythonVersion(executable) {
74130
74140
  return runCommandResolveStdOut([executable, "-SIc", `import sys; print(*sys.version_info[:3], sep='.')`]);
@@ -96775,7 +96785,7 @@ ${msg}`;
96775
96785
  logger.warn(`Package ${packageName} version mismatch: expected ${version3}, got ${installedVersion}`);
96776
96786
  }
96777
96787
  } catch (e) {
96778
- logger.error("Failed to check preinstalled virtual environment:", e);
96788
+ logger.error("Failed to check preinstalled virtual environment:", e.message);
96779
96789
  return false;
96780
96790
  }
96781
96791
  await this.updateVirtualEnvInfo(this.projectDir);