DEV Community

Discussion on: What is the difference between yarn and npm these days?

Collapse
 
guitarino profile image
Kirill Shestakov

I'm really liking yarn pnp. The idea that you don't have to do npm install or think at all about node_modules is awesome. Another great thing is that all your dependencies, as well as yarn itself, are stored inside your repo. I like the direction that yarn takes you into. It takes you away from reliance on npm, and allows you to be self-sufficient.

Collapse
 
artis3n profile image
Ari Kalfus

pnp is new to me... will have to see how it works. It looks like its resolution gets funky with typescript.

Collapse
 
guitarino profile image
Kirill Shestakov

I've been using TypeScript without much problem. If you're referring to TS in VSCode, you can use a custom workspace TS version (and pnpfy it) for the imports to get resolved properly.