@rudderhq/cli 0.1.0-canary.45 → 0.1.0-canary.46
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/index.js +3 -2
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8287,11 +8287,12 @@ function installPersistentCli(options) {
|
|
|
8287
8287
|
function runNpmGlobalInstall(spawnSyncImpl, args) {
|
|
8288
8288
|
return spawnSyncImpl(process.platform === "win32" ? "npm.cmd" : "npm", args, {
|
|
8289
8289
|
encoding: "utf8",
|
|
8290
|
-
stdio: ["inherit", "pipe", "pipe"]
|
|
8290
|
+
stdio: ["inherit", "pipe", "pipe"],
|
|
8291
|
+
...process.platform === "win32" ? { shell: true, windowsHide: true } : {}
|
|
8291
8292
|
});
|
|
8292
8293
|
}
|
|
8293
8294
|
function collectSpawnOutput(result) {
|
|
8294
|
-
return [result.stdout, result.stderr].filter((value) => typeof value === "string" && value.trim().length > 0).join("\n").trim();
|
|
8295
|
+
return [result.stdout, result.stderr, result.error instanceof Error ? result.error.message : null].filter((value) => typeof value === "string" && value.trim().length > 0).join("\n").trim();
|
|
8295
8296
|
}
|
|
8296
8297
|
function isRudderBinConflict(output) {
|
|
8297
8298
|
const normalized = output.toLowerCase().replaceAll("\\", "/");
|