Skip to content

Commit f8aaf89

Browse files
authored
docs: use the compact pkg.pr.new URL for bunx previews [ci skip] (ccusage#1929)
* docs: use the compact pkg.pr.new URL for bunx previews Match the form the bun E2E job runs: bunx --package https://pkg.pr.new/ccusage@<sha> ccusage * docs: keep the short -p flag for bunx previews
1 parent d097f74 commit f8aaf89

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/ccusage/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pnpm dlx ccusage
103103
pnpx ccusage
104104

105105
# PR preview builds
106-
bunx -p https://pkg.pr.new/ccusage/ccusage@<pr-number> ccusage --offline
106+
bunx -p https://pkg.pr.new/ccusage@<pr-number-or-commit-sha> ccusage --offline
107107
```
108108

109109
> [bunx](https://bun.com/docs/pm/bunx) caches the downloaded package, so repeated runs are faster after the first launch.

‎docs/guide/getting-started.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pnpm dlx ccusage
3030
```
3131

3232
```bash [pkg.pr.new preview]
33-
bunx -p https://pkg.pr.new/ccusage/ccusage@<pr-number> ccusage --offline
33+
bunx -p https://pkg.pr.new/ccusage@<pr-number-or-commit-sha> ccusage --offline
3434
```
3535

3636
:::

‎docs/guide/installation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ npx ccusage@latest
2929
```
3030

3131
```bash [pkg.pr.new preview]
32-
bunx -p https://pkg.pr.new/ccusage/ccusage@<pr-number> ccusage --offline
32+
bunx -p https://pkg.pr.new/ccusage@<pr-number-or-commit-sha> ccusage --offline
3333
```
3434

3535
:::

0 commit comments

Comments
 (0)