packages/vertex-sdk/scripts/postprocess-dist-package-json.cjs (8 lines of code) (raw):
const fs = require('fs');
const pkgJson = require('../dist/package.json');
for (const dep in pkgJson.dependencies) {
// ensure we point to NPM instead of a local directory
if (dep === '@anthropic-ai/sdk') {
pkgJson.dependencies[dep] = '>=0.50.3 <1';
}
}
fs.writeFileSync('dist/package.json', JSON.stringify(pkgJson, null, 2));