Skip to content

Commit 5299011

Browse files
committed
CI/Docs: Deno v2 support
1 parent 4710092 commit 5299011

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/npm.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ jobs:
185185
186186
- name: Run with Deno
187187
if: ${{ matrix.runtime == 'deno' }}
188-
run: deno run --allow-read --allow-ffi release.mjs
188+
run: |
189+
deno install
190+
deno run --allow-env --allow-ffi --allow-read --allow-sys release.mjs
189191
190192
- name: Run with Bun
191193
if: ${{ matrix.runtime == 'bun' }}

docs/src/content/docs/install.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm install sharp
2020
pnpm add sharp
2121
```
2222

23-
When using `pnpm`, you may need to add `sharp` to
23+
When using `pnpm`, add `sharp` to
2424
[ignoredBuiltDependencies](https://pnpm.io/settings#ignoredbuiltdependencies)
2525
to silence warnings.
2626

@@ -33,7 +33,8 @@ bun add sharp
3333
```
3434

3535
```sh frame="none"
36-
deno run --allow-ffi ...
36+
deno add --quiet npm:sharp
37+
deno run --allow-env --allow-ffi --allow-read --allow-sys ...
3738
```
3839

3940
## Prerequisites

0 commit comments

Comments
 (0)