diff --git a/src/watch.ts b/src/watch.ts index b0fa73e..f177a3c 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -57,7 +57,7 @@ export async function watch(sourceDirectory: string, hackmudDirectory: string, { } const watcher = watchDirectory( - [ `*/*.ts`, `*/*.js` ], + [ `*.ts`, `*.js`, `*/*.ts`, `*/*.js` ], { cwd: sourceDirectory, awaitWriteFinish: { stabilityThreshold: 100 }, ignored: `*.d.ts` } ).on(`change`, async path => { if (path.endsWith(`.d.ts`))