mirror of https://github.com/nocodb/nocodb
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.
16 lines
716 B
16 lines
716 B
3 years ago
|
const fs = require('fs')
|
||
|
const path = require('path')
|
||
|
|
||
|
const execSync = require('child_process').execSync;
|
||
|
|
||
|
// extract latest version from package.json
|
||
|
const ncLibPackage = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'packages', 'nc-lib-gui', 'package.json')))
|
||
|
|
||
|
// upgrade nc-lib-gui version in nocodb
|
||
|
execSync(`cd packages/nocodb && npm install --save --save-exact nc-lib-gui@${ncLibPackage.version}`, {});
|
||
|
|
||
|
const nocodbPackageFilePath = path.join(__dirname, '..', 'packages', 'nocodb', 'package.json')
|
||
|
const nocoLibPackage = JSON.parse(fs.readFileSync(nocodbPackageFilePath))
|
||
|
nocoLibPackage.version = process.env.VERSION;
|
||
|
fs.writeFileSync(nocodbPackageFilePath, JSON.stringify(nocoLibPackage, null, 2));
|