Skip to content

Commit 4a4155b

Browse files
gregmagolanvikerman
authored andcommitted
fix(@schematics/angular): fix BUILD file filter for npm package to include both BUILD and BUILD.bazel file
This removes the file https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/BUILD.bazel which currently makes it into the npm dist at `@schematics/angular/third_party/github.com/Microsoft/TypeScript/BUILD.bazel`.
1 parent 371bd61 commit 4a4155b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export default async function(
264264
}
265265

266266
// Remove Bazel files from NPM.
267-
if (fileName.endsWith('BUILD')) {
267+
if (fileName === 'BUILD' || fileName === 'BUILD.bazel') {
268268
return false;
269269
}
270270

0 commit comments

Comments
 (0)