4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

no more in use

This commit is contained in:
AlphaX-Projects 2023-05-11 19:31:08 +02:00 committed by GitHub
parent 7d0130718b
commit c1e8ff6180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,29 +0,0 @@
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');