Skip to content

Commit

Permalink
chore(build): Fix watcher failure when a file is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Dec 31, 2024
1 parent 97580cd commit 92744d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/build-tool/src/CompiledTypeScriptDirectory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ class CompiledTypeScriptDirectory {
}
} else {
for (const path of associatedFiles[filePath] ?? []) {
fs.unlinkSync(path);
if (fs.existsSync(path)) {
fs.unlinkSync(path);
}
}
}
};
Expand Down

0 comments on commit 92744d9

Please sign in to comment.