builderman 1.0.5 → 1.0.7
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/pipeline.js +3 -13
- package/package.json +1 -1
package/dist/pipeline.js
CHANGED
|
@@ -68,22 +68,12 @@ export function pipeline(tasks) {
|
|
|
68
68
|
PATH: newPath,
|
|
69
69
|
Path: newPath,
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
// Using shell: true can cause issues with Git Bash paths
|
|
73
|
-
const spawnOptions = {
|
|
71
|
+
const child = spawn(command, {
|
|
74
72
|
cwd,
|
|
75
73
|
stdio: ["inherit", "pipe", "pipe"],
|
|
74
|
+
shell: false,
|
|
76
75
|
env,
|
|
77
|
-
};
|
|
78
|
-
if (process.platform === "win32") {
|
|
79
|
-
// Use cmd.exe explicitly on Windows
|
|
80
|
-
spawnOptions.shell = process.env.ComSpec || "cmd.exe";
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
// On Unix-like systems, use shell: true
|
|
84
|
-
spawnOptions.shell = true;
|
|
85
|
-
}
|
|
86
|
-
const child = spawn(command, spawnOptions);
|
|
76
|
+
});
|
|
87
77
|
// Handle spawn errors
|
|
88
78
|
child.on("error", (error) => {
|
|
89
79
|
console.error(`[${task.name}] Failed to start:`, error.message);
|