We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb4a19 commit 90a0f64Copy full SHA for 90a0f64
internal/npm_install/generate_build_file.js
@@ -430,6 +430,11 @@ function deleteBazelFiles(pkg) {
430
// Delete BUILD and BUILD.bazel files so that so that files do not cross Bazel packages
431
// boundaries
432
const fullPath = path.posix.join('node_modules', pkg._dir, file);
433
+ if (!fs.existsSync(fullPath)) {
434
+ // It is possible that the file no longer exists as reported in
435
+ // https://github.com/bazelbuild/rules_nodejs/issues/522
436
+ return false;
437
+ }
438
fs.unlinkSync(fullPath);
439
return false;
440
}
0 commit comments