diff --git a/.changeset/unlucky-kangaroos-compete.md b/.changeset/unlucky-kangaroos-compete.md new file mode 100644 index 0000000..57425bf --- /dev/null +++ b/.changeset/unlucky-kangaroos-compete.md @@ -0,0 +1,5 @@ +--- +'lockfile-lint': minor +--- + +Add support for glob matching multiple lockfiles diff --git a/packages/lockfile-lint/README.md b/packages/lockfile-lint/README.md index 7fe3dbb..20bf0e3 100644 --- a/packages/lockfile-lint/README.md +++ b/packages/lockfile-lint/README.md @@ -78,7 +78,7 @@ lockfile-lint --path yarn.lock --allowed-hosts yarn --allowed-urls https://githu | command line argument | description | implemented | |----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------| -| `--path`, `-p` | path to the lockfile | ✅ | +| `--path`, `-p` | path to the lockfile but you can also provide a glob matching pattern, for example: `/path/to/dir/**/package-lock.json` to match multiple lockfiles */ | ✅ | | `--type`, `-t` | lockfile type, options are `npm` or `yarn` | ✅ | | `--format`, `-f` | sets what type of report output is desired, one of [ `pretty`, `plain` ] with `plain` removing colors & status symbols from output | ✅ | | `--validate-https`, `-s` | validates the use of HTTPS as protocol schema for all resources in the lockfile | ✅ |