mirror of
https://github.com/hanzoai/code.git
synced 2026-09-30 20:53:35 +00:00
Update scripts/update-version.js
let try this. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
Hanzo Dev
parent
cc1c4a02b4
commit
e0dcfb1dd6
@@ -5,7 +5,7 @@ const semver = require('semver');
|
||||
function updateProductJson(type = 'patch') {
|
||||
// Read product.json
|
||||
const productJsonPath = './product.json';
|
||||
const product = require('../' + productJsonPath);
|
||||
const product = JSON.parse(fs.readFileSync(productJsonPath, 'utf8'));
|
||||
|
||||
// Update the version
|
||||
product.voidVersion = semver.inc(product.voidVersion, type);
|
||||
|
||||
Reference in New Issue
Block a user