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:
Jérôme Commaret 2025-03-17 18:20:56 +01:00 committed by GitHub
parent e08e728fc8
commit a96e2f9a08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);