@cedarjs/cli-helpers 5.0.0-canary.2510 → 5.0.0-canary.2513
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/dist/cjs/packageManager/display.d.ts +3 -3
- package/dist/cjs/packageManager/display.d.ts.map +1 -1
- package/dist/cjs/packageManager/display.js +1 -4
- package/dist/cjs/packageManager/exec.d.ts +16 -3
- package/dist/cjs/packageManager/exec.d.ts.map +1 -1
- package/dist/cjs/packageManager/exec.js +9 -6
- package/dist/packageManager/display.d.ts +3 -3
- package/dist/packageManager/display.d.ts.map +1 -1
- package/dist/packageManager/display.js +1 -4
- package/dist/packageManager/exec.d.ts +16 -3
- package/dist/packageManager/exec.d.ts.map +1 -1
- package/dist/packageManager/exec.js +8 -6
- package/package.json +4 -4
|
@@ -10,17 +10,17 @@ export declare function formatInstallCommand(): string;
|
|
|
10
10
|
* Returns a formatted string for running a Cedar CLI command via the detected
|
|
11
11
|
* package manager.
|
|
12
12
|
*
|
|
13
|
-
* yarn → `yarn cedar <args>`
|
|
14
13
|
* npm → `npx cedar <args>`
|
|
15
|
-
*
|
|
14
|
+
* yarn → `yarn cedar <args>`
|
|
15
|
+
* pnpm → `pnpm cedar <args>`
|
|
16
16
|
*/
|
|
17
17
|
export declare function formatCedarCommand(args: string[]): string;
|
|
18
18
|
/**
|
|
19
19
|
* Returns a formatted string for running a package.json script via the
|
|
20
20
|
* detected package manager.
|
|
21
21
|
*
|
|
22
|
-
* yarn → `yarn <script> [args]`
|
|
23
22
|
* npm → `npm run <script>[ -- args]`
|
|
23
|
+
* yarn → `yarn <script> [args]`
|
|
24
24
|
* pnpm → `pnpm <script> [args]`
|
|
25
25
|
*/
|
|
26
26
|
export declare function formatRunScriptCommand(script: string, args?: string[]): string;
|
|
@@ -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,
|
|
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"}
|
|
@@ -40,10 +40,7 @@ function formatCedarCommand(args) {
|
|
|
40
40
|
if (pm === "npm") {
|
|
41
41
|
return `npx cedar${argStr}`;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
return `pnpm exec cedar${argStr}`;
|
|
45
|
-
}
|
|
46
|
-
return `yarn cedar${argStr}`;
|
|
43
|
+
return `${pm} cedar${argStr}`;
|
|
47
44
|
}
|
|
48
45
|
function formatRunScriptCommand(script, args = []) {
|
|
49
46
|
const pm = (0, import_packageManager.getPackageManager)();
|
|
@@ -49,14 +49,27 @@ export declare function runWorkspaceBin(workspace: string, bin: string, args?: s
|
|
|
49
49
|
*/
|
|
50
50
|
export declare function dlx(command: string, args?: string[], options?: ExecaOptions): execa.ExecaChildProcess<string>;
|
|
51
51
|
/**
|
|
52
|
-
* Returns spawn-compatible `[cmd, args]` for running a node script
|
|
53
|
-
* current package manager. Use with `child_process.spawn` (not execa).
|
|
52
|
+
* Returns spawn-compatible `[cmd, args]` for running a node script.
|
|
54
53
|
*
|
|
55
54
|
* Yarn PnP requires wrapping node via `yarn node` so module resolution works.
|
|
55
|
+
* npm and pnpm use standard `node_modules`, so running `node <script>`
|
|
56
|
+
* directly is sufficient.
|
|
56
57
|
*
|
|
57
58
|
* - yarn: `yarn node <script>`
|
|
58
59
|
* - npm: `node <script>`
|
|
59
|
-
* - pnpm: `
|
|
60
|
+
* - pnpm: `node <script>`
|
|
60
61
|
*/
|
|
61
62
|
export declare function getNodeRunnerArgs(scriptPath: string): [string, string[]];
|
|
63
|
+
/**
|
|
64
|
+
* Run a node script via execa.
|
|
65
|
+
*
|
|
66
|
+
* Yarn PnP requires wrapping node via `yarn node` so module resolution works.
|
|
67
|
+
* npm and pnpm use standard `node_modules`, so running `node <script>`
|
|
68
|
+
* directly is sufficient.
|
|
69
|
+
*
|
|
70
|
+
* - yarn: `yarn node <script>`
|
|
71
|
+
* - npm: `node <script>`
|
|
72
|
+
* - pnpm: `node <script>`
|
|
73
|
+
*/
|
|
74
|
+
export declare function runWithNode(scriptPath: string, options?: ExecaOptions): execa.ExecaChildProcess<string>;
|
|
62
75
|
//# sourceMappingURL=exec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../src/packageManager/exec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EACV,OAAO,IAAI,YAAY,EACvB,WAAW,IAAI,gBAAgB,EAChC,MAAM,OAAO,CAAA;AAId;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAWvB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,gBAAgB,sCAW3B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAsBvB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAcvB;AAED;;GAEG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,gBAAgB,sCAc3B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAcvB;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CACjB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCASvB;AAED
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../src/packageManager/exec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EACV,OAAO,IAAI,YAAY,EACvB,WAAW,IAAI,gBAAgB,EAChC,MAAM,OAAO,CAAA;AAId;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAWvB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,gBAAgB,sCAW3B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAsBvB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAcvB;AAED;;GAEG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,gBAAgB,sCAc3B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAcvB;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CACjB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCASvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAQxE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,mCAGrE"}
|
|
@@ -34,6 +34,7 @@ __export(exec_exports, {
|
|
|
34
34
|
runBinSync: () => runBinSync,
|
|
35
35
|
runScript: () => runScript,
|
|
36
36
|
runScriptSync: () => runScriptSync,
|
|
37
|
+
runWithNode: () => runWithNode,
|
|
37
38
|
runWorkspaceBin: () => runWorkspaceBin,
|
|
38
39
|
runWorkspaceScript: () => runWorkspaceScript
|
|
39
40
|
});
|
|
@@ -107,13 +108,14 @@ function dlx(command, args = [], options) {
|
|
|
107
108
|
}
|
|
108
109
|
function getNodeRunnerArgs(scriptPath) {
|
|
109
110
|
const pm = (0, import_packageManager.getPackageManager)();
|
|
110
|
-
if (pm === "
|
|
111
|
-
return ["node",
|
|
112
|
-
}
|
|
113
|
-
if (pm === "pnpm") {
|
|
114
|
-
return ["pnpm", ["exec", "node", scriptPath]];
|
|
111
|
+
if (pm === "yarn") {
|
|
112
|
+
return ["yarn", ["node", scriptPath]];
|
|
115
113
|
}
|
|
116
|
-
return ["
|
|
114
|
+
return ["node", [scriptPath]];
|
|
115
|
+
}
|
|
116
|
+
function runWithNode(scriptPath, options) {
|
|
117
|
+
const [cmd, args] = getNodeRunnerArgs(scriptPath);
|
|
118
|
+
return (0, import_execa.default)(cmd, args, options);
|
|
117
119
|
}
|
|
118
120
|
// Annotate the CommonJS export names for ESM import in node:
|
|
119
121
|
0 && (module.exports = {
|
|
@@ -123,6 +125,7 @@ function getNodeRunnerArgs(scriptPath) {
|
|
|
123
125
|
runBinSync,
|
|
124
126
|
runScript,
|
|
125
127
|
runScriptSync,
|
|
128
|
+
runWithNode,
|
|
126
129
|
runWorkspaceBin,
|
|
127
130
|
runWorkspaceScript
|
|
128
131
|
});
|
|
@@ -10,17 +10,17 @@ export declare function formatInstallCommand(): string;
|
|
|
10
10
|
* Returns a formatted string for running a Cedar CLI command via the detected
|
|
11
11
|
* package manager.
|
|
12
12
|
*
|
|
13
|
-
* yarn → `yarn cedar <args>`
|
|
14
13
|
* npm → `npx cedar <args>`
|
|
15
|
-
*
|
|
14
|
+
* yarn → `yarn cedar <args>`
|
|
15
|
+
* pnpm → `pnpm cedar <args>`
|
|
16
16
|
*/
|
|
17
17
|
export declare function formatCedarCommand(args: string[]): string;
|
|
18
18
|
/**
|
|
19
19
|
* Returns a formatted string for running a package.json script via the
|
|
20
20
|
* detected package manager.
|
|
21
21
|
*
|
|
22
|
-
* yarn → `yarn <script> [args]`
|
|
23
22
|
* npm → `npm run <script>[ -- args]`
|
|
23
|
+
* yarn → `yarn <script> [args]`
|
|
24
24
|
* pnpm → `pnpm <script> [args]`
|
|
25
25
|
*/
|
|
26
26
|
export declare function formatRunScriptCommand(script: string, args?: string[]): string;
|
|
@@ -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,
|
|
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"}
|
|
@@ -8,10 +8,7 @@ function formatCedarCommand(args) {
|
|
|
8
8
|
if (pm === "npm") {
|
|
9
9
|
return `npx cedar${argStr}`;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
return `pnpm exec cedar${argStr}`;
|
|
13
|
-
}
|
|
14
|
-
return `yarn cedar${argStr}`;
|
|
11
|
+
return `${pm} cedar${argStr}`;
|
|
15
12
|
}
|
|
16
13
|
function formatRunScriptCommand(script, args = []) {
|
|
17
14
|
const pm = getPackageManager();
|
|
@@ -49,14 +49,27 @@ export declare function runWorkspaceBin(workspace: string, bin: string, args?: s
|
|
|
49
49
|
*/
|
|
50
50
|
export declare function dlx(command: string, args?: string[], options?: ExecaOptions): execa.ExecaChildProcess<string>;
|
|
51
51
|
/**
|
|
52
|
-
* Returns spawn-compatible `[cmd, args]` for running a node script
|
|
53
|
-
* current package manager. Use with `child_process.spawn` (not execa).
|
|
52
|
+
* Returns spawn-compatible `[cmd, args]` for running a node script.
|
|
54
53
|
*
|
|
55
54
|
* Yarn PnP requires wrapping node via `yarn node` so module resolution works.
|
|
55
|
+
* npm and pnpm use standard `node_modules`, so running `node <script>`
|
|
56
|
+
* directly is sufficient.
|
|
56
57
|
*
|
|
57
58
|
* - yarn: `yarn node <script>`
|
|
58
59
|
* - npm: `node <script>`
|
|
59
|
-
* - pnpm: `
|
|
60
|
+
* - pnpm: `node <script>`
|
|
60
61
|
*/
|
|
61
62
|
export declare function getNodeRunnerArgs(scriptPath: string): [string, string[]];
|
|
63
|
+
/**
|
|
64
|
+
* Run a node script via execa.
|
|
65
|
+
*
|
|
66
|
+
* Yarn PnP requires wrapping node via `yarn node` so module resolution works.
|
|
67
|
+
* npm and pnpm use standard `node_modules`, so running `node <script>`
|
|
68
|
+
* directly is sufficient.
|
|
69
|
+
*
|
|
70
|
+
* - yarn: `yarn node <script>`
|
|
71
|
+
* - npm: `node <script>`
|
|
72
|
+
* - pnpm: `node <script>`
|
|
73
|
+
*/
|
|
74
|
+
export declare function runWithNode(scriptPath: string, options?: ExecaOptions): execa.ExecaChildProcess<string>;
|
|
62
75
|
//# sourceMappingURL=exec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/packageManager/exec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EACV,OAAO,IAAI,YAAY,EACvB,WAAW,IAAI,gBAAgB,EAChC,MAAM,OAAO,CAAA;AAId;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAWvB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,gBAAgB,sCAW3B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAsBvB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAcvB;AAED;;GAEG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,gBAAgB,sCAc3B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAcvB;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CACjB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCASvB;AAED
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/packageManager/exec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EACV,OAAO,IAAI,YAAY,EACvB,WAAW,IAAI,gBAAgB,EAChC,MAAM,OAAO,CAAA;AAId;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAWvB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,gBAAgB,sCAW3B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAsBvB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAcvB;AAED;;GAEG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,gBAAgB,sCAc3B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCAcvB;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CACjB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,CAAC,EAAE,YAAY,mCASvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAQxE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,mCAGrE"}
|
|
@@ -67,13 +67,14 @@ function dlx(command, args = [], options) {
|
|
|
67
67
|
}
|
|
68
68
|
function getNodeRunnerArgs(scriptPath) {
|
|
69
69
|
const pm = getPackageManager();
|
|
70
|
-
if (pm === "
|
|
71
|
-
return ["node",
|
|
72
|
-
}
|
|
73
|
-
if (pm === "pnpm") {
|
|
74
|
-
return ["pnpm", ["exec", "node", scriptPath]];
|
|
70
|
+
if (pm === "yarn") {
|
|
71
|
+
return ["yarn", ["node", scriptPath]];
|
|
75
72
|
}
|
|
76
|
-
return ["
|
|
73
|
+
return ["node", [scriptPath]];
|
|
74
|
+
}
|
|
75
|
+
function runWithNode(scriptPath, options) {
|
|
76
|
+
const [cmd, args] = getNodeRunnerArgs(scriptPath);
|
|
77
|
+
return execa(cmd, args, options);
|
|
77
78
|
}
|
|
78
79
|
export {
|
|
79
80
|
dlx,
|
|
@@ -82,6 +83,7 @@ export {
|
|
|
82
83
|
runBinSync,
|
|
83
84
|
runScript,
|
|
84
85
|
runScriptSync,
|
|
86
|
+
runWithNode,
|
|
85
87
|
runWorkspaceBin,
|
|
86
88
|
runWorkspaceScript
|
|
87
89
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli-helpers",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.2513",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
97
|
"@babel/core": "^7.26.10",
|
|
98
|
-
"@cedarjs/project-config": "5.0.0-canary.
|
|
99
|
-
"@cedarjs/telemetry": "5.0.0-canary.
|
|
98
|
+
"@cedarjs/project-config": "5.0.0-canary.2513",
|
|
99
|
+
"@cedarjs/telemetry": "5.0.0-canary.2513",
|
|
100
100
|
"@listr2/prompt-adapter-enquirer": "4.2.1",
|
|
101
101
|
"@opentelemetry/api": "1.9.1",
|
|
102
102
|
"ansis": "4.2.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"yargs-parser": "21.1.1"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
|
-
"@cedarjs/framework-tools": "5.0.0-canary.
|
|
118
|
+
"@cedarjs/framework-tools": "5.0.0-canary.2513",
|
|
119
119
|
"@types/dotenv-defaults": "^5.0.0",
|
|
120
120
|
"@types/lodash": "4.17.24",
|
|
121
121
|
"@types/pascalcase": "1.0.3",
|