From fa82f73b28cedef5c54d7d50a7b047f3121a09cc Mon Sep 17 00:00:00 2001 From: Samual Date: Sun, 14 Jan 2024 17:13:53 +0000 Subject: [PATCH] fix #144 --- src/watch.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/watch.ts b/src/watch.ts index fad7252..4bf25ed 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -64,8 +64,7 @@ export const watch = async ( scriptNamesToUsers.get(scriptName).add(user) } - const watcher = watchDirectory([ `*.ts`, `*.js` ], { - depth: 1, + const watcher = watchDirectory([ `*/*.ts`, `*/*.js` ], { cwd: sourceDirectory, awaitWriteFinish: { stabilityThreshold: 100 }, ignored: `*.d.ts` -- knotmirror 0.0.1