ajv-keywords icon indicating copy to clipboard operation
ajv-keywords copied to clipboard

chore: ajv deps

Open elrrrrrrr opened this issue 9 months ago • 0 comments
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. 🙏🏻

elrrrrrrr avatar Feb 07 '25 10:02 elrrrrrrr