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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
宝玉的分享
宝玉的分享
量子位
V
Visual Studio Blog
罗磊的独立博客
Vercel News
Vercel News
B
Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
GbyAI
GbyAI
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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 🚨