forked from Qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
const fs = require('fs') |
|
|
|
const uiPackageFilePath = 'package.json'; |
|
const uiPackageFile = fs.readFileSync(uiPackageFilePath, 'utf8'); |
|
const uiPackage = JSON.parse(uiPackageFile); |
|
|
|
const corePackageFilePath = './qortal-ui-core/package.json'; |
|
const corePackageFile = fs.readFileSync(corePackageFilePath, 'utf8'); |
|
const corePackage = JSON.parse(corePackageFile); |
|
|
|
const cryptoPackageFilePath = './qortal-ui-crypto/package.json'; |
|
const cryptoPackageFile = fs.readFileSync(cryptoPackageFilePath, 'utf8'); |
|
const cryptoPackage = JSON.parse(cryptoPackageFile); |
|
|
|
const pluginsPackageFilePath = './qortal-ui-plugins/package.json'; |
|
const pluginsPackageFile = fs.readFileSync(pluginsPackageFilePath, 'utf8'); |
|
const pluginsPackage = JSON.parse(pluginsPackageFile); |
|
|
|
uiPackage.dependencies = { |
|
...uiPackage.dependencies, |
|
"qortal-ui-core": corePackage.version, |
|
"qortal-ui-crypto": cryptoPackage.version, |
|
"qortal-ui-plugins": pluginsPackage.version |
|
} |
|
|
|
console.log(uiPackage.dependencies); |
|
|
|
fs.writeFileSync(uiPackageFilePath, JSON.stringify(uiPackage, null, 2)); |
|
console.log('Package.Json updated');
|
|
|