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

Fix apheleia-npx in Yarn PnP projects #301

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zeorin
Copy link

@zeorin zeorin commented May 1, 2024

  • apheleia-npx would use an incorrect path for the Yarn PnP ESM loader.
  • apheleia-npx did not correctly guard against word splitting.
  • apheleia-npx was sometimes not able to find formatters in a Yarn PnP project if there was also a node_modules folder at the root of the project. Unfortunately, many tools (including Prettier) will create a cache folder in node_modules even in Yarn PnP projects. The presence of any node_modules folders are irrelevant when a .pnp.cjs file is present.

@zeorin
Copy link
Author

zeorin commented May 1, 2024

cc @edslocomb & @raxod502, as you were involved in #200.

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.

None yet

1 participant