Skip to content

feat: add vlt to usage dropdown #1125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions api/src/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,16 @@ impl deno_doc::html::UsageComposer for DocUsageComposer {
},
format!("Add Package\n```\nyarn add jsr:{scoped_name}\n```\n<div class='or-bar'>or (using Yarn 4.8 or older)</div>\n\n```\nyarn dlx jsr add {scoped_name}\n```{import}"),
);
map.insert(
UsageComposerEntry {
name: "vlt".to_string(),
icon: Some(
r#"<img src="/logos/vlt.svg" alt="vlt logo" draggable="false" />"#
.into(),
),
},
format!("Add Package\n```\nvlt install jsr:{scoped_name}\n```{import}"),
);
map.insert(
UsageComposerEntry {
name: "npm".to_string(),
Expand Down
17 changes: 11 additions & 6 deletions frontend/docs/npm-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ downloaded from jsr.io and installed in your `node_modules` directory.

## Installing and using JSR packages

If you are using a recent version of pnpm (10.9+) or Yarn (4.9+), you can
install JSR packages using `pnpm install` or `yarn add` without any additional
configuration. These versions of pnpm and Yarn both support JSR out of the box.
If you are using a recent version of pnpm (10.9+), Yarn (4.9+) or vlt, you can
install JSR packages using `pnpm install`, `yarn add` or `vlt install` without
any additional configuration. These versions of pnpm and Yarn both support JSR
out of the box.

```sh
pnpm install jsr:@luca/cases
Expand All @@ -31,6 +32,10 @@ pnpm install jsr:@luca/cases
yarn add jsr:@luca/cases
```

```sh
vlt install jsr:@luca/cases
```

If you are using npm, an older version of pnpm or Yarn, or Bun, you can use the
JSR CLI to install JSR packages:

Expand Down Expand Up @@ -88,9 +93,9 @@ from npm.

The `@jsr` npm scope is served from the JSR registry at `https://npm.jsr.io`.

Recent versions of `yarn` and `pnpm` automatically configure pull packages in
the `@jsr` scope from `https://npm.jsr.io`, so you don't need to do anything
special to use JSR packages with these package managers.
Recent versions of `yarn`, `pnpm` and `vlt` automatically configure pull
packages in the `@jsr` scope from `https://npm.jsr.io`, so you don't need to do
anything special to use JSR packages with these package managers.

For other package managers, and older versions of `yarn` and `pnpm`, you need to
configure your package manager to use the JSR registry to install JSR packages.
Expand Down
11 changes: 11 additions & 0 deletions frontend/static/logos/vlt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading