Skip to content

Commit 0543413

Browse files
committed
fix: MaxListenersExceededWarning
1 parent df215cc commit 0543413

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@
88
## Authors
99

1010
- CatNose ([@catnose99](https://twitter.com/catnose99))
11-
- Hori Godai ([@steelydylan](https://github.com/steelydylan))
11+
- Hori Godai ([@steelydylan](https://github.com/steelydylan))
12+
13+
## Huge thanks
14+
- noriaki watanabe ([@nnabeyang](https://github.com/nnabeyang))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const exec: cliCommand = async (argv) => {
3030
if (watch) {
3131
const watcher = chokidar.watch(process.cwd());
3232
const io = socketIo(server);
33-
watcher.on("ready", () => {
33+
watcher.once("ready", () => {
3434
io.on("connection", (socket) => {
3535
watcher.on("all", async (_, path) => {
3636
if (/articles|books/.test(path)) {

0 commit comments

Comments
 (0)