cli: exclude non-source code files from watchlist

Co-authored-by: Philipp Hugenroth <philipph@spotify.com>
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-10-16 16:32:14 +02:00
parent 811720c953
commit b9c4c3528e
@@ -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);