Skip to content

Fix incorrect node:… module warnings in doctor#6347

Merged
arcanis merged 2 commits intoyarnpkg:masterfrom
bradleyayers:issue-6343
Jun 19, 2024
Merged

Fix incorrect node:… module warnings in doctor#6347
arcanis merged 2 commits intoyarnpkg:masterfrom
bradleyayers:issue-6343

Conversation

@bradleyayers
Copy link
Copy Markdown
Contributor

This swaps to use isBuiltin from Node rather than constructing a custom set of module names with node: prefix. For some modules that didn't have a "bare" module (e.g. node:test) this fixes false positive errors.

What's the problem this PR addresses?

Closes #6343

How did you fix it?

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

bradleyayers and others added 2 commits June 15, 2024 20:28
This swaps to use `isBuiltin` from Node rather than constructing a
custom set of module names with `node:` prefix. For some modules that
didn't have a "bare" module (e.g. `node:test`) this fixes false positive
errors.

Closes yarnpkg#6343
@arcanis arcanis merged commit 8445b05 into yarnpkg:master Jun 19, 2024
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.

[Bug?]: node:test not recognised as built-in module by @yarnpkg/doctor

2 participants