Skip to content

Commit

Permalink
fix(core): fix dependent projects for watch (#14170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli committed Jan 11, 2023
1 parent 6ce3466 commit 66df55f
Showing 1 changed file with 9 additions and 9 deletions.
Expand Up @@ -55,20 +55,20 @@ export function notifyFileWatcherSockets(
changedFiles.push(...projectFiles);
}
} else {
const watchedProjects = [...config.watchProjects];
const watchedProjects = new Set<string>(config.watchProjects);

if (config.includeDependentProjects) {
for (const project of watchedProjects) {
watchedProjects.push(
...findAllProjectNodeDependencies(
project,
currentProjectGraphCache as ProjectGraph
)
);
for (const project of config.watchProjects) {
for (const dep of findAllProjectNodeDependencies(
project,
currentProjectGraphCache as ProjectGraph
)) {
watchedProjects.add(dep);
}
}
}

for (const watchedProject of new Set(watchedProjects)) {
for (const watchedProject of watchedProjects) {
if (!!projectAndGlobalChanges.projects[watchedProject]) {
changedProjects.push(watchedProject);

Expand Down

1 comment on commit 66df55f

@vercel
Copy link

@vercel vercel bot commented on 66df55f Jan 11, 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
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.