mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 02:55:29 +00:00
refactor: review comments
This commit is contained in:
@@ -4,5 +4,11 @@ const path = require('path')
|
||||
const packageJsonPath =path.join(__dirname, '..', 'packages', 'nc-secret-cli', 'package.json')
|
||||
|
||||
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'))
|
||||
|
||||
if (!process.env.targetVersion) {
|
||||
console.error('Error: targetVersion environment variable is not defined.');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
packageJson.version = process.env.targetVersion
|
||||
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, 0, 2))
|
||||
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2))
|
||||
|
||||
Reference in New Issue
Block a user