Skip to content

Commit

Permalink
TMP: for testing bug in CI Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Oct 26, 2023
1 parent 744438a commit 6ccecfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion npm-scripts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6ccecfa

Please sign in to comment.