DEV Community

Discussion on: Introducing Yarn 2 ! 🧶🌟

Collapse
alephnaught2tog profile image
Max Cerrina

Does "readonly packages" mean that if I'm debugging, I can't hop into the source code of a given node_module and tinker with the code directly?

Collapse
arcanis profile image
Maël Nison Author

Readonly only as far as Node is concerned (ie you won't be able to writeFile directly into it). You can still use Emacs or Vim to open and edit the archives, and there is hope that VSCode will follow suite. And finally, you'll always be able to run yarn unplug <name> and the given package will be put into .yarn/unplugged where you can edit it to your heart's content.