Is it possible to use Yarn with Deno?
I like Deno's cache, but I prefer using Yarn because it zips everything
1 Reply
Yes, you can use Yarn with Deno's JavaScript Registry (JSR). The documentation states that JSR packages can be seamlessly consumed by any tool that uses
node_modules/
folders, which includes Yarn. You can incrementally adopt JSR packages in your Node projects, and you can use your favorite npm-compatible package manager like Yarn, or pnpm with JSR. 🦕
Keep in mind that while you can use Yarn with JSR, Deno itself has its own module resolution system that does not rely on node_modules/
or package managers like Yarn. Deno's cache system is designed to work with its own module resolution, which fetches and caches modules based on URLs.Helpful Links:
How the creator of Homebrew simplifies distributing software with tea and Deno
How immutable scripts in Deno allow Windmill.dev (YC S22) to build production-grade ops
deno cache | Deno Docs
Deno, the next-generation JavaScript runtime
Deno by Example
Deno KV Quick Start
How we built JSR
JSR Is Not Another Package Manager