Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add support for catalog:, npm:, and workspace: protocol (#103)
<!-- π Hi, thanks for sending a PR to package-json-validator! π. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [x] Addresses an existing open issue: fixes JoshuaKGoldberg/eslint-plugin-package-json#509 and #71 - [x] That issue was marked as [`status: accepting prs`](/~https://github.com/JoshuaKGoldberg/package-json-validator/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](/~https://github.com/JoshuaKGoldberg/package-json-validator/blob/main/.github/CONTRIBUTING.md) were taken ## Overview This change adds support for pnpm's catalog: protocol as well as yarn and pnpm's workspace protocol. Catalog entries can be simply `catalog:` or include a named catalog record (e.g. `catalog:react19`). Workspace, can just be `workspace:` or workspace with a range specifier (`workspace:^`) or workspace and a specific version range (`workspace:^1.50`). Workspace protocol: https://pnpm.io/next/workspaces#workspace-protocol-workspace Catalog: https://pnpm.io/next/catalogs Closes #71 (and possible JoshuaKGoldberg/eslint-plugin-package-json#509)
- Loading branch information