From 503f514fa0278c196c6c7e92317f22b2f5c040c6 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Wed, 10 Feb 2021 10:24:30 +0100 Subject: [PATCH 1/3] Update for listing all dependencies when checking licenses NPM 7 by default only prints the first level of dependencies but we need all of them for this script. --- packages/scripts/scripts/check-licenses.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/scripts/scripts/check-licenses.js b/packages/scripts/scripts/check-licenses.js index 502cfe1fae599..dfd01f8c67fb5 100644 --- a/packages/scripts/scripts/check-licenses.js +++ b/packages/scripts/scripts/check-licenses.js @@ -173,6 +173,7 @@ const child = spawn.sync( 'ls', '--json', '--long', + '--all', ...( prod ? [ '--prod' ] : [] ), ...( dev ? [ '--dev' ] : [] ), ], From 580e22078aa0dda194a6bd0c8040fd157cd881db Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Wed, 10 Feb 2021 15:27:19 +0100 Subject: [PATCH 2/3] Update scripts CHANGELOG --- packages/scripts/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/scripts/CHANGELOG.md b/packages/scripts/CHANGELOG.md index bb929e09d299d..f129952296db7 100644 --- a/packages/scripts/CHANGELOG.md +++ b/packages/scripts/CHANGELOG.md @@ -1,6 +1,7 @@ ## Unreleased +- Make `check-licenses` command compatible with npm v7 ([#28909](https://github.com/WordPress/gutenberg/pull/28909)). ## 13.0.0 (2021-01-21) From 356151d699b1615c0b719af49f7edd6d17fc40f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=B3=C5=82kowski?= Date: Wed, 10 Feb 2021 15:29:38 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- packages/scripts/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/scripts/CHANGELOG.md b/packages/scripts/CHANGELOG.md index f129952296db7..8c3889fa21b1a 100644 --- a/packages/scripts/CHANGELOG.md +++ b/packages/scripts/CHANGELOG.md @@ -1,6 +1,9 @@ ## Unreleased + +### Enhancements + - Make `check-licenses` command compatible with npm v7 ([#28909](https://github.com/WordPress/gutenberg/pull/28909)). ## 13.0.0 (2021-01-21)