pnpmpnpm-workspace

Is there a list of known needed public-host-pattern for pnpm?


So, the default public-host-pattern for pnpm is [*eslint*, *prettier*], but I just discovered that I needed to add @types* as well, and I'm currently tracking down an aws issue that will likely result in another. Is there already a kind of database or list for known incompatibilities with node_modules/.pnpm/node_modules? It seems like a good idea and that it would be a widespread problem. I'd expect a similar list for pnp resolution like yarn berry


Solution

  • There is no such list. We would prefer tools to work correctly without the workarounds.

    If you have issues you can use the node-linker=hoisted setting to create a “flat” node_modules similar to the one created by npm CLI.