mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
Update scripts/update-version.js
let try this. Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
parent
e08e728fc8
commit
a96e2f9a08
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue