|
|
@ -22,7 +22,7 @@ const replacePackageVersion = (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) { |
|
|
|
if (err) return reject(err) |
|
|
|
if (err) return reject(err) |
|
|
|
var result = data.replace(/workspace:\*/g, nocodbSdkPackage.version); |
|
|
|
var result = data.replace(/workspace:\^/g, nocodbSdkPackage.version); |
|
|
|
return fs.writeFile(filePath, result, 'utf8', function (err) { |
|
|
|
return fs.writeFile(filePath, result, 'utf8', function (err) { |
|
|
|
if (err) return reject(err) |
|
|
|
if (err) return reject(err) |
|
|
|
return resolve() |
|
|
|
return resolve() |
|
|
|