Skip to content

Commit

Permalink
fix(core): filter batches of outputs changes properly (#17697)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Jun 20, 2023
1 parent 30c57fd commit 62628ab
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/nx/src/daemon/server/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,15 @@ export async function watchOutputFiles(cb: FileWatcherCallback) {
return cb(err, null);
}

for (const event of events) {
if (
event.path.startsWith('.git') ||
event.path.includes('node_modules')
) {
return;
}
events = events.filter((event) => {
return (
!event.path.startsWith('.git') && !event.path.includes('node_modules')
);
});

if (events.length !== 0) {
cb(null, events);
}

cb(null, events);
});
return watcher;
}
Expand Down

1 comment on commit 62628ab

@vercel
Copy link

@vercel vercel bot commented on 62628ab Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.