Last time I tried, yarn 2 was totally unusable. Apparently, it would work in a future world where all packages in the registry were perfect. Has that future arrived?
Hello Yarn 2, Goodbye node_modules
21–30 of 160 posts
Re: Hello Yarn 2, Goodbye node_modules
#22Re: Hello Yarn 2, Goodbye node_modules
#23So the cost is you add another tool (yarn) to your toolchain and this is better than NPM because your deps are all in one folder and just mapped through a header file instead of being duplicated for every project, am I understanding that right?
Re: Hello Yarn 2, Goodbye node_modules
#24Kind of frustrating that this article doesn’t really describe in a nutshell how they do it, despite it being the title. It kind of assumes you already read about dropping node_modules.
For anyone curious, that’s mainly described in the linked article here: https://yarnpkg.com/features/pnp
Re: Hello Yarn 2, Goodbye node_modules
#25Yarn 3.0 was released in July 2021 ( https://dev.to/arcanis/yarn-3-0-performances-esbuild-better-... ) Meanwhile, as much as I respect the work of Mael (yarn maintainer) I’ve switched back to npm. Mostly because: - isaacs (original creator of npm) did some commits lately - now backed by GitHub - they introduced workspaces (monorepo support) in npm 7 - it’s still easier to use the standard tooling in dev/ci/prod - lik…
Re: Hello Yarn 2, Goodbye node_modules
#26But to say that you eliminated node_modules and then introduce a new folder which will have the same files inside it... sounds like madness to me.
No thanks.
Re: Hello Yarn 2, Goodbye node_modules
#27Last time I tried, yarn 2 was totally unusable. Apparently, it would work in a future world where all packages in the registry were perfect. Has that future arrived?
I've been using Yarn v2 on a decent-sized mixed-codebase JS app since the fall, and we just switched over to using it for both of the Redux Toolkit and React-Redux repos.
Re: Hello Yarn 2, Goodbye node_modules
#28Re: Hello Yarn 2, Goodbye node_modules
#29It’s insane that only now we have bundler
Whereas Bundler just works (generally speaking).
Re: Hello Yarn 2, Goodbye node_modules
#30Yarn 3.0 was released in July 2021 ( https://dev.to/arcanis/yarn-3-0-performances-esbuild-better-... ) Meanwhile, as much as I respect the work of Mael (yarn maintainer) I’ve switched back to npm. Mostly because: - isaacs (original creator of npm) did some commits lately - now backed by GitHub - they introduced workspaces (monorepo support) in npm 7 - it’s still easier to use the standard tooling in dev/ci/prod - lik…