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

[v4] Use fs.readFileSync instead of importing json file #13104

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

RobinMalfait
Copy link
Member

In some environments, depending on the Node version importing a .json file without a with or assert doesn't work.

Let's play it safe and use an fs.readFileSync instead.

In some environments, depending on the Node version importing a `.json`
file without a `with` or `assert` doesn't work.

Let's play it safe and use an `fs.readFileSync` instead.
@RobinMalfait RobinMalfait changed the title Use fs.readFileSync instead of importing json file [v4] Use fs.readFileSync instead of importing json file Mar 6, 2024
@adamwathan adamwathan merged commit 19fcd0e into next Mar 6, 2024
1 check passed
@adamwathan adamwathan deleted the fix/prevent-cli-from-crashing branch March 6, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants