wuX4an
wuX4an•4mo ago

Is it possible to use Yarn with Deno?

I like Deno's cache, but I prefer using Yarn because it zips everything
1 Reply
Deno AI Helper
Deno AI Helper•4mo ago
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.