History

Fix npm publish command process invocation

- Pass command and args directly to `ChildProcess.make` in the publish CLI - Remove fragile template-literal invocation to ensure command runs reliably

Julius Marminge committed 8 months ago

Commit 9fdec3c1 parent 760fe641 file · +2 −2Browse files

Unified · Split

apps/server/scripts/cli.ts+2−2
@@ -135,11 +135,11 @@ const publishCmd = Command.make( · 134 unmodified lines
135135
136136 yield* Effect.log(`[cli] Running: npm ${args.join(" ")}`);
137137 yield* runCommand(
138− ChildProcess.make({
138+ ChildProcess.make("npm", [...args], {
139139 cwd: serverDir,
140140 stdout: config.verbose ? "inherit" : "ignore",
141141 stderr: "inherit",
142− })`npm ${args.join(" ")}`,
142+ }),
143143 );
144144 }),
145145 // Release: restore