Skip to content

Commit 3acd3e1

Browse files
committed
fix: watcher.on => watcher.once
1 parent 71e2faf commit 3acd3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/zenn-cli/cli/preview/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const exec: cliCommand = async (argv) => {
3232
const io = socketIo(server);
3333
watcher.once("ready", () => {
3434
io.on("connection", (socket) => {
35-
watcher.on("all", async (_, path) => {
35+
watcher.once("all", async (_, path) => {
3636
if (/articles|books/.test(path)) {
3737
socket.emit("reload");
3838
}

0 commit comments

Comments
 (0)