惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
MyScale Blog
MyScale Blog
雷峰网
雷峰网
量子位
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
T
Tailwind CSS Blog
月光博客
月光博客
博客园 - 【当耐特】
博客园_首页
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
人人都是产品经理
人人都是产品经理
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell

Deno

Deno 2.8 | Deno Claw Patrol: an open-source security firewall for agents | Deno Fresh 2.3: Zero JS by default, View Transitions, and Temporal support | Deno Deno 2.7: Temporal API, Windows ARM, and npm overrides | Deno Build a dinosaur runner game with Deno, pt. 6 | Deno Build a dinosaur runner game with Deno, pt. 5 | Deno Deno Deploy is Generally Available | Deno Introducing Deno Sandbox | Deno Build a dinosaur runner game with Deno, pt. 4 | Deno Build a dinosaur runner game with Deno, pt. 3 | Deno Build a dinosaur runner game with Deno, pt. 2 | Deno React / Next.js Denial-of-Service Vulnerability: Deno Deploy users protected | Deno Deno 2.6: dx is the new npx | Deno Build a dinosaur runner game with Deno, pt. 1 | Deno React Server Functions / Next.js Vulnerability: Deno Deploy users protected | Deno My highlights from the new Deno Deploy | Deno Deno's Other Open Source Projects | Deno How Deno protects against npm exploits | Deno Help Us Raise $200k to Free JavaScript from Oracle | Deno Deno 2.5: Permissions in the config file | Deno Fresh 2.0 Graduates to Beta, Adds Vite Support | Deno Deno 2.4: deno bundle is back | Deno JavaScript™ Trademark Update | Deno What's coming to JavaScript | Deno A brief history of JavaScript | Deno Reports of Deno's Demise Have Been Greatly Exaggerated | Deno An Update on Fresh | Deno How Plaid migrated 100 services to a new database platform 5x faster with Deno | Deno Deno 2.3: Improved deno compile, local npm packages, and more | Deno Zero-config Debugging with Deno and OpenTelemetry | Deno
Add JSR packages with pnpm and Yarn | Deno
2025-04-25 · via Deno

We’re excited to announce that you can now install JSR packages directly using both pnpm and Yarn!

Not only can you access JSR packages via pnpm and yarn, but you can also install any npm packages with a JSR dependency. This also means that you can also now publish packages to npm that have a JSR dependency.

Yarn and pnpm installation instructions are now on JSR

The pnpm and Yarn installation instructions on each JSR package page now show how to install using the native JSR support in both pnpm and Yarn.
  • install JSR package via pnpm
  • install JSR package via Yarn
  • What’s next

JSR is a modern, open source JavaScript and TypeScript registry. Learn more from its announcement post.

pnpm

Starting with pnpm v10.9, installing JSR packages is natively supported:

pnpm add jsr:<scope>/<pkg_name>


pnpm add jsr:<scope>/<pkg_name>@<range>

This command will automatically add the following entry to your package.json:

{
  "dependencies": {
    "@<scope>/<pkg_name>": "jsr:^0.1.2"
  }
}

Read more about how to use JSR with pnpm in their documentation.

Yarn

Since Yarn v4.9.0, you can install JSR packages with the following command:

yarn add jsr:<scope>/<pkg_name>@<version>


yarn add jsr:<scope>/<pkg_name>@<range>

Like pnpm, this command will automatically update your package.json with an entry to the newly added package:

{
  "dependencies": {
    "@<scope>/<pkg_name>": "jsr:^0.1.2"
  }
}

Read more about how yarn handles JSR in their documentation.

What’s next

These updates not only make JSR packages more accessible to your project, but also unlocks new opportunities for module authors to publish packages with JSR depedencies. We’ll share more about this in a future blog post (but if you’re interested in learning more, come say hi in our Discord).

If you’re interested in staying in the loop with JSR updates, check out our Discord, or follow our Twitter/Bluesky/YouTube. We also hold bi-weekly office hours where we share the roadmap, current challenges, and answer any of your questions about JSR.

🚨 Recent JSR news 🚨