CI/Docs: Deno v2 support

This commit is contained in:
Lovell Fuller 2025-09-17 13:56:49 +01:00
parent 4710092b2a
commit 529901177b
2 changed files with 6 additions and 3 deletions

View File

@ -185,7 +185,9 @@ jobs:
- name: Run with Deno
if: ${{ matrix.runtime == 'deno' }}
run: deno run --allow-read --allow-ffi release.mjs
run: |
deno install
deno run --allow-env --allow-ffi --allow-read --allow-sys release.mjs
- name: Run with Bun
if: ${{ matrix.runtime == 'bun' }}

View File

@ -20,7 +20,7 @@ npm install sharp
pnpm add sharp
```
When using `pnpm`, you may need to add `sharp` to
When using `pnpm`, add `sharp` to
[ignoredBuiltDependencies](https://pnpm.io/settings#ignoredbuiltdependencies)
to silence warnings.
@ -33,7 +33,8 @@ bun add sharp
```
```sh frame="none"
deno run --allow-ffi ...
deno add --quiet npm:sharp
deno run --allow-env --allow-ffi --allow-read --allow-sys ...
```
## Prerequisites