Merge pull request #20617 from backstage/fix-experimental-backend-watch
cli: exclude non-source code files from watchlist
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user