Skip to content

Commit

Permalink
fix(@schematics/angular): fix BUILD file filter for npm package to in…
Browse files Browse the repository at this point in the history
…clude 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`.
  • Loading branch information
gregmagolan authored and vikerman committed Jun 25, 2019
1 parent 51185c5 commit 1ba2a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export default async function(
}

// Remove Bazel files from NPM.
if (fileName.endsWith('BUILD')) {
if (fileName === 'BUILD' || fileName === 'BUILD.bazel') {
return false;
}

Expand Down

0 comments on commit 1ba2a03

Please sign in to comment.