fix(cli): suppress ExperimentalWarning in CLI and daemon spawn
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user