Files
js-sdk/packages/mcp-server/scripts/postprocess-dist-package-json.cjs
2026-09-11 18:00:34 +00:00

13 lines
399 B
JavaScript

const fs = require('fs');
const pkgJson = require('../dist/package.json');
const parentPkgJson = require('../../../package.json');
for (const dep in pkgJson.dependencies) {
// ensure we point to NPM instead of a local directory
if (dep === 'hanzoai') {
pkgJson.dependencies[dep] = '^' + parentPkgJson.version;
}
}
fs.writeFileSync('dist/package.json', JSON.stringify(pkgJson, null, 2));