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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user