From 5b81b7459a2a2ba48bb2953b5a8842c0c33829e3 Mon Sep 17 00:00:00 2001 From: Ndricim Date: Thu, 1 Feb 2024 13:01:28 +0100 Subject: [PATCH] Quick fix container release docu script (#3627) --- container/prepareNextRelease.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container/prepareNextRelease.js b/container/prepareNextRelease.js index aacb6d2695..b7df02aebf 100644 --- a/container/prepareNextRelease.js +++ b/container/prepareNextRelease.js @@ -16,7 +16,7 @@ const path = require('path'); const replaceVersionInFolder = folderPath => { try { // Read package.json file - const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8')); + const packageJson = JSON.parse(fs.readFileSync('./public/package.json', 'utf8')); // Get the version const version = packageJson.version; @@ -43,7 +43,7 @@ const replaceVersionInFolder = folderPath => { // Write the updated content back to the file fs.writeFileSync(filePath, fileContent, 'utf8'); - console.log(`Replaced occurrence in file: ${file} )`); + console.log(`Replaced occurrence in file: ${file} `); } else { console.log(`No occurrences found in ${file}`); }