Browse Source

chore: update upgradeNocodbSdk script (#7940)

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/7948/head
Mert E 8 months ago committed by GitHub
parent
commit
be2e335818
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      scripts/upgradeNocodbSdk.js

5
scripts/upgradeNocodbSdk.js

@ -5,6 +5,11 @@ const execSync = require('child_process').execSync;
// extract latest version from package.json // extract latest version from package.json
const nocodbSdkPackage = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'packages', 'nocodb-sdk', 'package.json'), 'utf8')) const nocodbSdkPackage = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'packages', 'nocodb-sdk', 'package.json'), 'utf8'))
if (process.env.revertSDK === 'true') {
nocodbSdkPackage.version = 'workspace:^';
}
const replacePackageName = (filePath) => { const replacePackageName = (filePath) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
return fs.readFile(filePath, 'utf8', function (err, data) { return fs.readFile(filePath, 'utf8', function (err, data) {

Loading…
Cancel
Save