Browse Source

fix: change package name for DEV only

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1354/head
Wing-Kam Wong 3 years ago
parent
commit
d9c19fa259
  1. 4
      scripts/upgradeNcGui.js

4
scripts/upgradeNcGui.js

@ -25,7 +25,9 @@ const bumbVersionAndSave = () => {
execSync(`cd packages/nocodb && npm install --save --save-exact ${ncLibPackage.name}@${ncLibPackage.version}`, {});
const nocodbPackageFilePath = path.join(__dirname, '..', 'packages', 'nocodb', 'package.json')
const nocoLibPackage = JSON.parse(fs.readFileSync(nocodbPackageFilePath))
nocoLibPackage.name = `${nocoLibPackage.name}-daily`
if (process.env.targetEnv === 'DEV') {
nocoLibPackage.name = `${nocoLibPackage.name}-daily`
}
nocoLibPackage.version = ncLibPackage.version
fs.writeFileSync(nocodbPackageFilePath, JSON.stringify(nocoLibPackage, null, 2));
}

Loading…
Cancel
Save