@cedarjs/cli-helpers 5.0.7-next.186 → 5.0.7-next.239

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.
@@ -42,6 +42,16 @@ export declare function formatRunWorkspaceScriptCommand(workspace: string, scrip
42
42
  * pnpm → `pnpm exec <bin> [args]`
43
43
  */
44
44
  export declare function formatRunBinCommand(bin: string, args?: string[]): string;
45
+ /**
46
+ * Returns a formatted string for running a transitive dependency's binary
47
+ * (one not listed directly in the project's package.json, e.g. Prisma) via
48
+ * the detected package manager.
49
+ *
50
+ * yarn → `npx <bin> [args]`
51
+ * npm → `npx <bin> [args]`
52
+ * pnpm → `pnpm exec <bin> [args]`
53
+ */
54
+ export declare function formatRunTransitiveBinCommand(bin: string, args?: string[]): string;
45
55
  /**
46
56
  * Returns a formatted string for running a local binary in a workspace context
47
57
  * via the detected package manager.
@@ -1 +1 @@
1
- {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/packageManager/display.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CASzD;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,GAClB,MAAM,CAUR;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,GAClB,MAAM,CAgBR;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,MAAM,CAa5E;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,GAClB,MAAM,CAcR;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,MAAM,CAS7E;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,MAAM,EAAE,EAClB,GAAG,UAAQ,GACV,MAAM,CAOR;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAAE,EAClB,GAAG,UAAQ,GACV,MAAM,CAeR;AAED;;;;;;;GAOG;AACH,wBAAgB,oCAAoC,CAClD,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAAE,GACjB,MAAM,CAcR"}
1
+ {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/packageManager/display.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CASzD;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,GAClB,MAAM,CAUR;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,GAClB,MAAM,CAgBR;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,MAAM,CAa5E;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,GAClB,MAAM,CASR;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,GAClB,MAAM,CAcR;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,GAAG,MAAM,CAS7E;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,MAAM,EAAE,EAClB,GAAG,UAAQ,GACV,MAAM,CAOR;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAAE,EAClB,GAAG,UAAQ,GACV,MAAM,CAeR;AAED;;;;;;;GAOG;AACH,wBAAgB,oCAAoC,CAClD,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAAE,GACjB,MAAM,CAcR"}
@@ -43,6 +43,14 @@ function formatRunBinCommand(bin, args = []) {
43
43
  }
44
44
  return `yarn ${bin}${argStr}`;
45
45
  }
46
+ function formatRunTransitiveBinCommand(bin, args = []) {
47
+ const pm = getPackageManager();
48
+ const argStr = args.length > 0 ? ` ${args.join(" ")}` : "";
49
+ if (pm === "pnpm") {
50
+ return `pnpm exec ${bin}${argStr}`;
51
+ }
52
+ return `npx ${bin}${argStr}`;
53
+ }
46
54
  function formatRunWorkspaceBinCommand(workspace, bin, args = []) {
47
55
  const pm = getPackageManager();
48
56
  const argStr = args.length > 0 ? ` ${args.join(" ")}` : "";
@@ -101,6 +109,7 @@ export {
101
109
  formatRemoveWorkspacePackagesCommand,
102
110
  formatRunBinCommand,
103
111
  formatRunScriptCommand,
112
+ formatRunTransitiveBinCommand,
104
113
  formatRunWorkspaceBinCommand,
105
114
  formatRunWorkspaceScriptCommand
106
115
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli-helpers",
3
- "version": "5.0.7-next.186",
3
+ "version": "5.0.7-next.239",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -73,8 +73,8 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@babel/core": "^7.26.10",
76
- "@cedarjs/project-config": "5.0.7-next.186",
77
- "@cedarjs/telemetry": "5.0.7-next.186",
76
+ "@cedarjs/project-config": "5.0.7-next.239",
77
+ "@cedarjs/telemetry": "5.0.7-next.239",
78
78
  "@listr2/prompt-adapter-enquirer": "4.3.0",
79
79
  "@opentelemetry/api": "1.9.1",
80
80
  "ansis": "4.3.1",
@@ -93,9 +93,9 @@
93
93
  "yargs-parser": "21.1.1"
94
94
  },
95
95
  "devDependencies": {
96
- "@cedarjs/framework-tools": "5.0.7-next.186",
96
+ "@cedarjs/framework-tools": "5.0.7-next.239",
97
97
  "@types/dotenv-defaults": "^5.0.0",
98
- "@types/lodash": "4.17.24",
98
+ "@types/lodash": "4.17.25",
99
99
  "@types/pascalcase": "1.0.3",
100
100
  "@types/semver": "^7",
101
101
  "@types/yargs": "17.0.35",