diff --git a/scripts/upgradeNocodbSdk.js b/scripts/upgradeNocodbSdk.js index 344b85d8bc..e95a86438a 100644 --- a/scripts/upgradeNocodbSdk.js +++ b/scripts/upgradeNocodbSdk.js @@ -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) {