fix(packaging): expose Ajv from CJS validator subpaths (#2431)
This commit is contained in:
parent
ddba550fa9
commit
1b90c96d11
1 changed files with 37 additions and 3 deletions
6
.changeset/cjs-ajv-validator-subpath.md
Normal file
6
.changeset/cjs-ajv-validator-subpath.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@modelcontextprotocol/server': patch
|
||||
'@modelcontextprotocol/client': patch
|
||||
---
|
||||
|
||||
Fix the CommonJS `validators/ajv` subpath so reading the exported `Ajv` class no longer throws `ReferenceError: import_ajv is not defined`. The subpath now re-exports the bundled provider's concrete `Ajv` value in CJS output, matching the existing ESM behavior.
|
||||
Loading…
Reference in a new issue