@coana-tech/cli 14.4.7 → 14.4.8

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/cli.js +15 -5
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -74221,10 +74221,20 @@ var init_pnpm_fixing_manager = __esm({
74221
74221
  throw new Error(`fixing data for package manager 'PNPM' required, got ${packageManagerInfo.packageManager}`);
74222
74222
  }
74223
74223
  const isInstallingInRootOfWorkspace = workspacePath === "." && packageManagerInfo.workspacePaths.length > 1;
74224
- await this.actuallyRunInstall(
74225
- cmdt`${isDev && "-D"} ${isInstallingInRootOfWorkspace && "-w"} ${packagesToInstall}`,
74226
- workspacePath
74227
- );
74224
+ try {
74225
+ await this.actuallyRunInstall(
74226
+ cmdt`${isDev && "-D"} ${isInstallingInRootOfWorkspace && "-w"} ${packagesToInstall}`,
74227
+ workspacePath
74228
+ );
74229
+ } catch (e) {
74230
+ if (e.stdout.includes("ERR_PNPM_PUBLIC_HOIST_PATTERN_DIFF")) {
74231
+ logger.error(
74232
+ `Failed to run installation command ${e.cmd}. This is likely because your package.json has a packageManager field that specifies a pnpm version that's different from the version used to create the current node_modules folders.`,
74233
+ e.stdout
74234
+ );
74235
+ }
74236
+ throw e;
74237
+ }
74228
74238
  }
74229
74239
  async actuallyRunInstall(specificPackagesCmd = [], workspacePath = ".") {
74230
74240
  const installationCommand = cmdt`pnpm install --ignore-scripts ${specificPackagesCmd}`;
@@ -207897,7 +207907,7 @@ var require_version = __commonJS({
207897
207907
  "use strict";
207898
207908
  Object.defineProperty(exports2, "__esModule", { value: true });
207899
207909
  exports2.version = void 0;
207900
- exports2.version = "14.4.7";
207910
+ exports2.version = "14.4.8";
207901
207911
  }
207902
207912
  });
207903
207913
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.4.7",
3
+ "version": "14.4.8",
4
4
  "description": "Coana CLI",
5
5
  "bin": {
6
6
  "@coana-tech/cli": "./cli.js"