From acf87b8047a0a457fff269ee80b90a570926be04 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Tue, 1 Aug 2023 20:46:29 +0300 Subject: [PATCH] docs: update README with new CLI flag for package name aliases (#178) * docs: update README with new CLI flag for package name aliases * chore: add changelog entry --- .changeset/selfish-moons-destroy.md | 6 ++++++ packages/lockfile-lint/README.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/selfish-moons-destroy.md diff --git a/.changeset/selfish-moons-destroy.md b/.changeset/selfish-moons-destroy.md new file mode 100644 index 0000000..ceaa9a0 --- /dev/null +++ b/.changeset/selfish-moons-destroy.md @@ -0,0 +1,6 @@ +--- +'lockfile-lint': minor +'lockfile-lint-api': minor +--- + +New CLI flag to add package name and aliases as trusted policy diff --git a/packages/lockfile-lint/README.md b/packages/lockfile-lint/README.md index 75b14fd..7fe3dbb 100644 --- a/packages/lockfile-lint/README.md +++ b/packages/lockfile-lint/README.md @@ -87,8 +87,8 @@ lockfile-lint --path yarn.lock --allowed-hosts yarn --allowed-urls https://githu | `--allowed-urls`, `-u` | allowed URLs (e.g. `https://github.com/some-org/some-repo#some-hash`) | ✅ | | `--empty-hostname`, `-e` | allow empty hostnames, or set to false if you wish for a stricter policy | ✅ | | `--validate-package-names`, `-n` | validates that the resolved URL matches the package name | ✅ | -| `--validate-checksum`, `-c` | check that all resources include a checksum | ❌ PRs welcome | | `--validate-integrity`, `-i` | validates the integrity field is a sha512 hash | ✅ | +| `--allowed-package-name-aliases`, `-l` | allow package name aliases to be used by specifying package name and their alias as pairs (e.g: `string-width-cjs:string-width`) | ✅ | # File-Based Configuration