- Pass command and args directly to `ChildProcess.make` in the publish CLI - Remove fragile template-literal invocation to ensure command runs reliably
Unified · Split
| @@ -135,11 +135,11 @@ const publishCmd = Command.make( · 134 unmodified lines | ||
| 135 | 135 | |
| 136 | 136 | yield* Effect.log(`[cli] Running: npm ${args.join(" ")}`); |
| 137 | 137 | yield* runCommand( |
| 138 | − ChildProcess.make({ | |
| 138 | + ChildProcess.make("npm", [...args], { | |
| 139 | 139 | cwd: serverDir, |
| 140 | 140 | stdout: config.verbose ? "inherit" : "ignore", |
| 141 | 141 | stderr: "inherit", |
| 142 | − })`npm ${args.join(" ")}`, | |
| 142 | + }), | |
| 143 | 143 | ); |
| 144 | 144 | }), |
| 145 | 145 | // Release: restore |