mirror of
https://github.com/lovell/sharp.git
synced 2025-12-06 03:51:40 +01:00
CI/Docs: Deno v2 support
This commit is contained in:
parent
4710092b2a
commit
529901177b
4
.github/workflows/npm.yml
vendored
4
.github/workflows/npm.yml
vendored
@ -185,7 +185,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Run with Deno
|
- name: Run with Deno
|
||||||
if: ${{ matrix.runtime == '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
|
- name: Run with Bun
|
||||||
if: ${{ matrix.runtime == 'bun' }}
|
if: ${{ matrix.runtime == 'bun' }}
|
||||||
|
|||||||
@ -20,7 +20,7 @@ npm install sharp
|
|||||||
pnpm add 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)
|
[ignoredBuiltDependencies](https://pnpm.io/settings#ignoredbuiltdependencies)
|
||||||
to silence warnings.
|
to silence warnings.
|
||||||
|
|
||||||
@ -33,7 +33,8 @@ bun add sharp
|
|||||||
```
|
```
|
||||||
|
|
||||||
```sh frame="none"
|
```sh frame="none"
|
||||||
deno run --allow-ffi ...
|
deno add --quiet npm:sharp
|
||||||
|
deno run --allow-env --allow-ffi --allow-read --allow-sys ...
|
||||||
```
|
```
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user