Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/nxPublic

Commit66df55f

Browse files
authored
fix(core): fix dependent projects for watch (#14170)
1 parent6ce3466 commit66df55f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎packages/nx/src/daemon/server/file-watching/file-watcher-sockets.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ export function notifyFileWatcherSockets(
5555
changedFiles.push(...projectFiles);
5656
}
5757
}else{
58-
constwatchedProjects=[...config.watchProjects];
58+
constwatchedProjects=newSet<string>(config.watchProjects);
5959

6060
if(config.includeDependentProjects){
61-
for(constprojectofwatchedProjects){
62-
watchedProjects.push(
63-
...findAllProjectNodeDependencies(
64-
project,
65-
currentProjectGraphCacheasProjectGraph
66-
)
67-
);
61+
for(constprojectofconfig.watchProjects){
62+
for(constdepoffindAllProjectNodeDependencies(
63+
project,
64+
currentProjectGraphCacheasProjectGraph
65+
)){
66+
watchedProjects.add(dep);
67+
}
6868
}
6969
}
7070

71-
for(constwatchedProjectofnewSet(watchedProjects)){
71+
for(constwatchedProjectofwatchedProjects){
7272
if(!!projectAndGlobalChanges.projects[watchedProject]){
7373
changedProjects.push(watchedProject);
7474

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp