Merge pull request #20617 from backstage/fix-experimental-backend-watch

cli: exclude non-source code files from watchlist
This commit is contained in:
Patrik Oldsberg
2023-10-16 17:42:20 +02:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Fixed recursive reloading issues of the backend, caused by unwanted watched files.
@@ -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);