From a96e2f9a08d0d457811920204224b12312ed9f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Commaret?= Date: Mon, 17 Mar 2025 18:20:56 +0100 Subject: [PATCH] Update scripts/update-version.js let try this. Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --- scripts/update-version.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-version.js b/scripts/update-version.js index a8542ad3..5a528a47 100644 --- a/scripts/update-version.js +++ b/scripts/update-version.js @@ -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);