Skip to content

Commit 1149b1a

Browse files
clydinfilipesilva
authored andcommitted
revert: fix(@angular-devkit/build-angular): switch to license-checker-webpack-plugin
Partial revert of bd58259 (squashed commit)
1 parent 515de49 commit 1149b1a

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

packages/angular_devkit/build_angular/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ts_library(
138138
"@npm//karma",
139139
"@npm//karma-source-map-support",
140140
"@npm//less-loader",
141-
"@npm//license-checker-webpack-plugin",
141+
"@npm//license-webpack-plugin",
142142
"@npm//loader-utils",
143143
"@npm//mini-css-extract-plugin",
144144
"@npm//minimatch",

packages/angular_devkit/build_angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"jest-worker": "26.0.0",
3737
"karma-source-map-support": "1.4.0",
3838
"less-loader": "6.1.0",
39-
"license-checker-webpack-plugin": "0.1.4",
39+
"license-webpack-plugin": "2.2.0",
4040
"loader-utils": "2.0.0",
4141
"mini-css-extract-plugin": "0.9.0",
4242
"minimatch": "3.0.4",

packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/browser.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import * as LicenseCheckerWebpackPlugin from 'license-checker-webpack-plugin';
98
import * as webpack from 'webpack';
109
import { CommonJsUsageWarnPlugin } from '../../plugins/webpack';
1110
import { WebpackConfigOptions } from '../build-options';
1211
import { getSourceMapDevTool, isPolyfillsEntry, normalizeExtraEntryPoints } from './utils';
1312

1413
const SubresourceIntegrityPlugin = require('webpack-subresource-integrity');
14+
const LicenseWebpackPlugin = require('license-webpack-plugin').LicenseWebpackPlugin;
1515

1616

1717
export function getBrowserConfig(wco: WebpackConfigOptions): webpack.Configuration {
@@ -41,7 +41,12 @@ export function getBrowserConfig(wco: WebpackConfigOptions): webpack.Configurati
4141
}
4242

4343
if (extractLicenses) {
44-
extraPlugins.push(new LicenseCheckerWebpackPlugin({
44+
extraPlugins.push(new LicenseWebpackPlugin({
45+
stats: {
46+
warnings: false,
47+
errors: false,
48+
},
49+
perChunkOutput: false,
4550
outputFilename: '3rdpartylicenses.txt',
4651
}));
4752
}

yarn.lock

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7286,6 +7286,14 @@ license-checker@^25.0.0:
72867286
spdx-satisfies "^4.0.0"
72877287
treeify "^1.1.0"
72887288

7289+
7290+
version "2.2.0"
7291+
resolved "https://registry.yarnpkg.com/license-webpack-plugin/-/license-webpack-plugin-2.2.0.tgz#5c964380d7d0e0c27c349d86a6f856c82924590e"
7292+
integrity sha512-XPsdL/0brSHf+7dXIlRqotnCQ58RX2au6otkOg4U3dm8uH+Ka/fW4iukEs95uXm+qKe/SBs+s1Ll/aQddKG+tg==
7293+
dependencies:
7294+
"@types/webpack-sources" "^0.1.5"
7295+
webpack-sources "^1.2.0"
7296+
72897297
lie@~3.3.0:
72907298
version "3.3.0"
72917299
resolved "https://registry.yarnpkg.com/lie/-/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a"
@@ -12786,7 +12794,7 @@ [email protected]:
1278612794
dependencies:
1278712795
lodash "^4.17.15"
1278812796

12789-
[email protected], webpack-sources@^1.1.0, webpack-sources@^1.3.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1, webpack-sources@^1.4.3:
12797+
[email protected], webpack-sources@^1.1.0, webpack-sources@^1.2.0, webpack-sources@^1.3.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1, webpack-sources@^1.4.3:
1279012798
version "1.4.3"
1279112799
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.4.3.tgz#eedd8ec0b928fbf1cbfe994e22d2d890f330a933"
1279212800
integrity sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==

0 commit comments

Comments
 (0)