Skip to content

Commit

Permalink
List all dependencies when checking licenses in NPM 7 (#28909)
Browse files Browse the repository at this point in the history
* 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.

* Update scripts CHANGELOG

* Update CHANGELOG.md

Co-authored-by: Greg Ziółkowski <[email protected]>
  • Loading branch information
fluiddot and gziolo authored Feb 10, 2021
1 parent 0ad9197 commit bd651b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Enhancements

- Make `check-licenses` command compatible with npm v7 ([#28909](https://github.com/WordPress/gutenberg/pull/28909)).

## 13.0.0 (2021-01-21)

### Breaking Changes
Expand Down
1 change: 1 addition & 0 deletions packages/scripts/scripts/check-licenses.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ const child = spawn.sync(
'ls',
'--json',
'--long',
'--all',
...( prod ? [ '--prod' ] : [] ),
...( dev ? [ '--dev' ] : [] ),
],
Expand Down

0 comments on commit bd651b2

Please sign in to comment.