fix(@angular-devkit/build-angular): switch to license-checker-webpack-plugin#16291
fix(@angular-devkit/build-angular): switch to license-checker-webpack-plugin#16291mgechev merged 2 commits intoangular:masterfrom
Conversation
|
Out of curiosity can you check if it fixes also #14095 |
|
@alan-agius4, I tried out on their repro case and I do see The user said they expected to see that repo's |
|
Thanks @dgp1130 for checking the ionic issue. Will update the issue as suggested. |
|
Discussed this PR, and we'd rather not change a dependency like this so close to the v9 release. Decision is to instead suppress the warnings for v9, and then for v9.x we can re-evaluate if we want to try and fix the existing dependency or change to this one. |
|
Now is probably a good time to make this happen, I'll revisit and update this PR. |
8d10ccf to
c39ea49
Compare
|
Rebased the PR on master and double checked that it still appears to be working as expected. I also added a second commit reverting the log suppression code that is no longer necessary. PTAL. I believe this can merge to patch as I don't think we make guarantees about the format of the |
|
The revert commit message should be reworded to I think since we are changing the dependency and the output, it's safer to target only master. |
|
Fixed the commit message, rebased to |
alan-agius4
left a comment
There was a problem hiding this comment.
LGTM, kindly rebase again as you have conflicts.
| "sass-loader": "8.0.2", | ||
| "semver": "7.1.3", | ||
| "source-map": "0.7.3", | ||
| "source-map-support": "0.5.16", |
There was a problem hiding this comment.
Oops, please add this back as this is a direct depedency of build-angular.
There was a problem hiding this comment.
Done. Any particular reason this is needed but not detected? I'm not sure how yarn decided to remove this.
There was a problem hiding this comment.
I am aware of any functionality from yarn to remove dependencies.
There was a problem hiding this comment.
Hmm, strange. I'm not sure why these got removed/reordered then. I think this happened when I did yarn add, but I'm not too sure as it was some months ago when I first made the PR.
…rtylicenses.txt warning" This reverts commit 59c9802. No longer necessary to suppress this log, now that the root cause has been fixed.
|
I also rebased onto |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes #16193, #14095.
This replaces the existing
license-webpack-pluginwith the newlicense-checker-webpack-plugin. The former would output multiple3rdpartylicenses.txtfiles which would trigger warnings in Webpack. The later does not emit this warning and still appears to log all third party licenses in a reasonable fashion.The output format is changed, see https://www.diffchecker.com/puCPV7LQ for a more complete before-and-after comparison of a simple example Angular app (with jQuery and Bootstrap installed).
It is worth discussing if we want to go down this route or if we should stick with
license-webpack-pluginand attempt to fix it rather than changing the entire dependency.