From 6ccecfa312944035af0439d06bf5bcb360d34ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Thu, 26 Oct 2023 16:04:09 +0200 Subject: [PATCH 1/3] TMP: for testing bug in CI Node 20 https://github.com/versatica/mediasoup-client/actions/runs/6654886963/job/18084621753 --- npm-scripts.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/npm-scripts.mjs b/npm-scripts.mjs index 7dfa06b2..4ee7eb13 100644 --- a/npm-scripts.mjs +++ b/npm-scripts.mjs @@ -118,17 +118,19 @@ function replaceVersion() const files = fs.readdirSync('lib', { withFileTypes : true, - recursive : true + recursive : false }); for (const file of files) { + console.log('--- file:', file); if (!file.isFile()) { continue; } const filePath = path.join('lib', file.name); + console.log('--- filePath:', filePath); const text = fs.readFileSync(filePath, { encoding: 'utf8' }); const result = text.replace(/__MEDIASOUP_CLIENT_VERSION__/g, PKG.version); From 4ebdba327f3349e23682f75af36b8edc1a6c3aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Thu, 26 Oct 2023 16:07:47 +0200 Subject: [PATCH 2/3] foo --- npm-scripts.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/npm-scripts.mjs b/npm-scripts.mjs index 4ee7eb13..437c5959 100644 --- a/npm-scripts.mjs +++ b/npm-scripts.mjs @@ -10,6 +10,11 @@ const MAYOR_VERSION = PKG.version.split('.')[0]; const task = process.argv.slice(2).join(' '); +executeCmd('echo "node -v:"'); +executeCmd('node -v'); +// replaceVersion(); +// process.exit(); + run(); async function run() @@ -118,7 +123,7 @@ function replaceVersion() const files = fs.readdirSync('lib', { withFileTypes : true, - recursive : false + recursive : true }); for (const file of files) From 0f70e727e9a5fb77bdb2a925190cd1e855abfaa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Thu, 26 Oct 2023 16:08:50 +0200 Subject: [PATCH 3/3] fix lint --- npm-scripts.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/npm-scripts.mjs b/npm-scripts.mjs index 437c5959..a35be717 100644 --- a/npm-scripts.mjs +++ b/npm-scripts.mjs @@ -128,6 +128,7 @@ function replaceVersion() for (const file of files) { + // eslint-disable-next-line no-console console.log('--- file:', file); if (!file.isFile()) { @@ -135,6 +136,8 @@ function replaceVersion() } const filePath = path.join('lib', file.name); + + // eslint-disable-next-line no-console console.log('--- filePath:', filePath); const text = fs.readFileSync(filePath, { encoding: 'utf8' }); const result = text.replace(/__MEDIASOUP_CLIENT_VERSION__/g, PKG.version);