Skip to content

Commit

Permalink
chore: update upgradeNocodbSdk script (#7940)
Browse files Browse the repository at this point in the history
Signed-off-by: mertmit <mertmit99@gmail.com>
  • Loading branch information
mertmit committed Mar 23, 2024
1 parent 6fa015f commit be2e335
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/upgradeNocodbSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const execSync = require('child_process').execSync;
// extract latest version from package.json
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) => {
return new Promise((resolve, reject) => {
return fs.readFile(filePath, 'utf8', function (err, data) {
Expand Down

0 comments on commit be2e335

Please sign in to comment.