From b9c4c3528ed2113c3489792f42f82afff900c3e2 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Mon, 16 Oct 2023 16:32:14 +0200 Subject: [PATCH] cli: exclude non-source code files from watchlist Co-authored-by: Philipp Hugenroth Signed-off-by: Vincenzo Scamporlino --- packages/cli/src/lib/experimental/startBackendExperimental.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cli/src/lib/experimental/startBackendExperimental.ts b/packages/cli/src/lib/experimental/startBackendExperimental.ts index 578fd1c747..c4271deb3d 100644 --- a/packages/cli/src/lib/experimental/startBackendExperimental.ts +++ b/packages/cli/src/lib/experimental/startBackendExperimental.ts @@ -124,9 +124,8 @@ export async function startBackendExperimental(options: BackendServeOptions) { restart(); - watcher = watch([paths.targetDir], { + watcher = watch([], { cwd: process.cwd(), - ignored: ['**/.*/**', '**/node_modules/**'], ignoreInitial: true, ignorePermissionErrors: true, }).on('all', restart);