Skip to content

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

Merged
adamwathan merged 1 commit intonextfrom
fix/prevent-cli-from-crashing
Mar 6, 2024
Merged

[v4] Use fs.readFileSync instead of importing json file#13104
adamwathan merged 1 commit intonextfrom
fix/prevent-cli-from-crashing

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
@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