Skip to content

Commit 863067c

Browse files
dgp1130mgechev
authored andcommitted
revert: "fix(@angular-devkit/build-angular): suppress duplicate 3rdpartylicenses.txt warning"
This reverts commit 59c9802. No longer necessary to suppress this log, now that the root cause has been fixed.
1 parent bd58259 commit 863067c

File tree

1 file changed

+1
-9
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/utilities

1 file changed

+1
-9
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/utilities/stats.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,12 @@ export function statsToString(json: any, statsConfig: any) {
8686
}
8787
}
8888

89-
// TODO(#16193): Don't emit this warning in the first place rather than just suppressing it.
90-
const ERRONEOUS_WARNINGS = [
91-
/multiple assets emit different content.*3rdpartylicenses\.txt/i,
92-
];
9389
export function statsWarningsToString(json: any, statsConfig: any) {
9490
const colors = statsConfig.colors;
9591
const rs = (x: string) => colors ? reset(x) : x;
9692
const y = (x: string) => colors ? bold(yellow(x)) : x;
9793

98-
return rs('\n' + json.warnings
99-
.map((warning: any) => `${warning}`)
100-
.filter((warning: string) => !ERRONEOUS_WARNINGS.some((erroneous) => erroneous.test(warning)))
101-
.map((warning: string) => y(`WARNING in ${warning}`))
102-
.join('\n\n'));
94+
return rs('\n' + json.warnings.map((warning: any) => y(`WARNING in ${warning}`)).join('\n\n'));
10395
}
10496

10597
export function statsErrorsToString(json: any, statsConfig: any) {

0 commit comments

Comments
 (0)