builderman 1.0.6 → 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.
Files changed (2) hide show
  1. package/dist/pipeline.js +3 -13
  2. 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
- // On Windows, use cmd.exe explicitly to avoid path resolution issues
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "builderman",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Simple task runner for building and developing projects.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",