Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMP: for testing bug in CI Node 20 #282

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions npm-scripts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -123,12 +128,17 @@ function replaceVersion()

for (const file of files)
{
// eslint-disable-next-line no-console
console.log('--- file:', file);
if (!file.isFile())
{
continue;
}

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);

Expand Down
Loading