mirror of
https://github.com/ComposioHQ/composio.git
synced 2026-09-22 11:46:35 +08:00
e4c6c497bc
Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com> Co-authored-by: Musthaq Ahamad <53584487+haxzie@users.noreply.github.com>
21 lines
564 B
JavaScript
21 lines
564 B
JavaScript
/**
|
|
* Alias manager for pnpm.
|
|
*/
|
|
function readPackage(pkg, context) {
|
|
/**
|
|
* Alias zod-to-json-schema to @finom/zod-to-json-schema, to work around this issue:
|
|
* https://github.com/StefanTerdell/zod-to-json-schema/issues/178.
|
|
*/
|
|
if (pkg.dependencies && pkg.dependencies['zod-to-json-schema']) {
|
|
pkg.dependencies['zod-to-json-schema'] = 'npm:@finom/zod-to-json-schema@3.24.11'
|
|
context.log(`zod-to-json-schema => @finom/zod-to-json-schema in dependencies of ${pkg.name}`)
|
|
}
|
|
return pkg
|
|
}
|
|
|
|
module.exports = {
|
|
hooks: {
|
|
readPackage
|
|
}
|
|
}
|