diff --git a/src/plugins/run.ts b/src/plugins/run.ts index 5983e24..510ecf5 100644 --- a/src/plugins/run.ts +++ b/src/plugins/run.ts @@ -30,7 +30,7 @@ async function setup(build: PluginBuild, opts: RunOption) { } function onRestart(execute: ReturnType) { - process.stdout.on("data", (buf) => { + process.stdin.on("data", (buf) => { const txt = buf.toString().trim(); if (txt === "rs") { execute();