From a085ea5134a8243afad32db5ad77982c1b4ccdc5 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sat, 28 Oct 2023 16:30:41 +0200 Subject: [PATCH] Fixed release script. --- src/bin/release.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/bin/release.js b/src/bin/release.js index 55df435b6..b9c719beb 100644 --- a/src/bin/release.js +++ b/src/bin/release.js @@ -9,9 +9,12 @@ const childProcess = require('child_process'); const log4js = require('log4js'); const path = require('path'); const semver = require('semver'); -const {exec} = require("child_process"); +const {exec} = require('child_process'); -log4js.replaceConsole(); +log4js.configure({appenders: {console: {type: 'console'}}, + categories: { + default: {appenders: ['console'], level: 'info'}, + }}); /* @@ -78,11 +81,11 @@ const assertUpstreamOk = (branch, opts = {}) => { }; // Check if asciidoctor is installed -exec('asciidoctor -v', (err,stdout)=>{ - if (err){ - console.log('Please install asciidoctor') - console.log('https://asciidoctor.org/docs/install-toolchain/') - process.exit(1) +exec('asciidoctor -v', (err, stdout) => { + if (err) { + console.log('Please install asciidoctor'); + console.log('https://asciidoctor.org/docs/install-toolchain/'); + process.exit(1); } }); @@ -183,7 +186,7 @@ try { run('git pull --ff-only', {cwd: '../ether.github.com/'}); console.log('Committing documentation...'); run(`cp -R out/doc/ ../ether.github.com/public/doc/v'${newVersion}'`); - run(`npm version ${newVersion}`, {cwd:'../ether.github.com'}) + run(`npm version ${newVersion}`, {cwd: '../ether.github.com'}); run('git add .', {cwd: '../ether.github.com/'}); run(`git commit -m '${newVersion} docs'`, {cwd: '../ether.github.com/'}); } catch (err) {