mirror of
https://github.com/hanzoai/js-sdk.git
synced 2026-10-30 15:02:31 +00:00
13 lines
399 B
JavaScript
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));
|