ajv-keywords
ajv-keywords copied to clipboard
chore: ajv deps
trafficstars
In our legacy old project, we disable peerDeps by enabling legacyPeerDeps, similar to the situation described here: https://github.com/ajv-validator/ajv-keywords/issues/385.
When multiple versions of ajv exist in the project, ajv fails to run since it usually happens when ajv-keywords is hoisted to the root path, but there is ajv@6 in the root path.
Considering that ajv-keywords is usually used together with ajv, it might be more strict to declare it through deps.
This can avoid similar issues and will not significantly increase the project size. 🙏🏻