Compatibility with yarn 2 (or yarn 1 PnP mode)
See original GitHub issueCurrent Behavior
Yarn v2 got a stable release today, and it uses PnP (instead of node_modules) exclusively
Right now tsdx test
, tsdx build
(and maybe others) have some issues with it (specially with finding the typescript package if it is not globally installed, which would be my case).
Desired Behavior
TSDX should work out of the box with yarn v2 / yarn v1 PnP mode
Suggested Solution
Fix TSDX build configurations / upgrade build packages.
Who does this impact? Who is this for?
People who use yarn v1 PNP mode and/or yarn v2.
Describe alternatives you’ve considered
N/A
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Plug'n'Play | Yarn - Package Manager
To address this problem, Yarn ships with a "loose" mode which will cause the PnP linker to work in tandem with the node-modules...
Read more >It's 2021, and You Should Switch to Yarn 2 - Atomic Spin
1. Backwards Compatibility with node_modules. Yarn 2 uses a new Plug'n'Play (PnP) architecture that is a huge departure from how npm projects ...
Read more >Advanced package manager features for npm, Yarn, and pnpm
Loose mode is a compromise between PnP strict mode and the traditional node_modules dependency resolving mechanism. The difference is that Yarn ...
Read more >Yarn v2 PnP is simply a lifesaver if you have a medium+ sized ...
That said, I think yarn 2's PnP + zero installs (https://yarnpkg.com/features/zero-installs) is lovely with CI. Instead of tacking 40+ seconds to resolve deps ......
Read more >[AskJS] Do you use Yarn v2? : r/javascript - Reddit
yarn v3.1 has a pnpm compatible linker which is (to my experience) the best of both worlds. Installation speed comparable (if not equal)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Gonna press pause until this is sorted out: https://github.com/yarnpkg/berry/issues/766#issue-555117544
I’ll mark this as PR welcome.
node_modules
is referenced in a few places and I know some of our dependencies rely on it too, so I don’t think the amount of work for this is trivial. We’d also have to support both versions too, not just Berry. And probably run tests against both versions in CI too.Not really a high priority given amount of work, other priorities, and that the community hasn’t really moved on to Berry as a whole (including little interest in this issue and the fact that it’s not the default version).