fix(cli): suppress ExperimentalWarning in CLI and daemon spawn

This commit is contained in:
2026-04-27 09:18:34 +00:00
parent d70e74afde
commit 09098ef4b2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ export default defineConfig({
format: "esm",
dts: true,
banner: {
js: "#!/usr/bin/env node",
js: "#!/usr/bin/env -S node --disable-warning=ExperimentalWarning",
},
},
],
+1 -1
View File
@@ -92,7 +92,7 @@ async function runDaemon(nerveRoot: string, cliHttpPort: number | null): Promise
// After `open`, file-backed WriteStream has a numeric OS fd for spawn stdio; `@types/node` omits `fd` on this WriteStream alias.
const logFd = (logStream as unknown as { fd: number }).fd;
const child = spawn(process.execPath, [bootstrapPath], {
const child = spawn(process.execPath, ["--disable-warning=ExperimentalWarning", bootstrapPath], {
detached: true,
stdio: ["ignore", logFd, logFd],
env,