Skip to content

Commit ee758dd

Browse files
committed
feat: add vlt to usage dropdown
1 parent 8910e68 commit ee758dd

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed

api/src/docs.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,16 @@ impl deno_doc::html::UsageComposer for DocUsageComposer {
12461246
},
12471247
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}"),
12481248
);
1249+
map.insert(
1250+
UsageComposerEntry {
1251+
name: "vlt".to_string(),
1252+
icon: Some(
1253+
r#"<img src="/logos/vlt.svg" alt="vlt logo" draggable="false" />"#
1254+
.into(),
1255+
),
1256+
},
1257+
format!("Add Package\n```\nvlt install jsr:{scoped_name}\n```{import}"),
1258+
);
12491259
map.insert(
12501260
UsageComposerEntry {
12511261
name: "npm".to_string(),

frontend/docs/npm-compatibility.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ downloaded from jsr.io and installed in your `node_modules` directory.
1919

2020
## Installing and using JSR packages
2121

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

2627
```sh
2728
pnpm install jsr:@luca/cases
@@ -31,6 +32,10 @@ pnpm install jsr:@luca/cases
3132
yarn add jsr:@luca/cases
3233
```
3334

35+
```sh
36+
vlt install jsr:@luca/cases
37+
```
38+
3439
If you are using npm, an older version of pnpm or Yarn, or Bun, you can use the
3540
JSR CLI to install JSR packages:
3641

@@ -88,9 +93,9 @@ from npm.
8893

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

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

95100
For other package managers, and older versions of `yarn` and `pnpm`, you need to
96101
configure your package manager to use the JSR registry to install JSR packages.

frontend/static/logos/vlt.svg

Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)