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

npm-scripts.ts: Fix replaceVersion() in Node 20 #283

Merged
merged 1 commit into from
Oct 26, 2023
Merged

npm-scripts.ts: Fix replaceVersion() in Node 20 #283

merged 1 commit into from
Oct 26, 2023

Conversation

ibc
Copy link
Member

@ibc ibc commented Oct 26, 2023

Just that. Wrong usage of fs.readdirSync().

ibc added a commit to versatica/mediasoup that referenced this pull request Oct 26, 2023
@ibc ibc merged commit 2b45e1d into v3 Oct 26, 2023
@ibc ibc deleted the fix-ci-node-20 branch October 26, 2023 14:46
@nazar-pc
Copy link
Contributor

Hm, can about making it IIFE and read version from package.json? That seems to be a compatible change and doesn't require file edits.

@ibc
Copy link
Member Author

ibc commented Oct 26, 2023

You mean using `fs.readfileSync(path.join(dirname, '..', 'package.json') and parse it etc? It's an overkill IMHO.

@ibc
Copy link
Member Author

ibc commented Oct 26, 2023

BTW no no, this is mediasoup-client! Did you mean versatica/mediasoup#1197?
In mediasoup-client we cannot read files! this may probably run in browser.

@nazar-pc
Copy link
Contributor

Right, I think I commented on the wrong PR 🙂

ibc added a commit to versatica/mediasoup that referenced this pull request Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants