File tree 10 files changed +14
-15
lines changed
10 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 11
11
- name : Setup Deno
12
12
uses : denoland/setup-deno@v1
13
13
with :
14
- deno-version : v1 .x.x
14
+ deno-version : v2 .x.x
15
15
- name : Vendor Deno modules
16
- run : deno vendor edge-runtime/vendor.ts --output= edge-runtime/vendor --force
16
+ run : deno --allow-import edge-runtime/vendor.ts
17
17
- name : Test
18
18
run : deno test -A edge-runtime/
Original file line number Diff line number Diff line change 24
24
uses : denoland/setup-deno@v1
25
25
with :
26
26
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
27
- deno-version : v1.46.3
27
+ deno-version : v2.3.1
28
28
- name : Extract tag and version
29
29
id : extract
30
30
run : |-
Original file line number Diff line number Diff line change 32
32
uses : denoland/setup-deno@v1
33
33
with :
34
34
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
35
- deno-version : v1.46.3
35
+ deno-version : v2.3.1
36
36
- name : Build
37
37
run : npm run build
38
38
if : ${{ steps.release.outputs.release_created }}
Original file line number Diff line number Diff line change 68
68
uses : denoland/setup-deno@v1
69
69
with :
70
70
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
71
- deno-version : v1.46.3
71
+ deno-version : v2.3.1
72
72
- name : ' Install dependencies'
73
73
run : npm ci
74
74
- name : ' Prepare Netlify CLI'
@@ -146,7 +146,7 @@ jobs:
146
146
uses : denoland/setup-deno@v1
147
147
with :
148
148
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/e55f825bd985d3c92e21d1b765d71e70d5628fba/node/bridge.ts#L17
149
- deno-version : v1.46.3
149
+ deno-version : v2.3.1
150
150
- name : ' Install dependencies'
151
151
run : npm ci
152
152
- name : ' Build'
@@ -213,7 +213,7 @@ jobs:
213
213
uses : denoland/setup-deno@v1
214
214
with :
215
215
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
216
- deno-version : v1.46.3
216
+ deno-version : v2.3.1
217
217
- name : ' Install dependencies'
218
218
run : npm ci
219
219
- name : ' Build'
Original file line number Diff line number Diff line change 24
24
uses : denoland/setup-deno@v1
25
25
with :
26
26
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
27
- deno-version : v1.46.3
27
+ deno-version : v2.3.1
28
28
- run : npm ci
29
29
30
30
- name : Package size report
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ jobs:
162
162
uses : denoland/setup-deno@v1
163
163
with :
164
164
# Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
165
- deno-version : v1.46.3
165
+ deno-version : v2.3.1
166
166
167
167
- name : install runtime
168
168
run : npm install --ignore-scripts
Original file line number Diff line number Diff line change 7
7
"imports" : {
8
8
"@netlify/edge-functions" : " https://edge.netlify.com/v1/index.ts"
9
9
},
10
- "importMap " : " ./edge-runtime/vendor/import_map.json "
10
+ "vendor " : true
11
11
}
Original file line number Diff line number Diff line change 1
1
import type { Context } from '@netlify/edge-functions'
2
2
3
- import type { ElementHandlers } from '../vendor/deno.land/x/htmlrewriter@v1.0.0/src/index.ts'
4
- import { getCookies } from '../vendor/deno.land/std@0.175.0/http/cookie.ts'
3
+ import type { ElementHandlers } from '../../ vendor/deno.land/x/htmlrewriter@v1.0.0/src/index.ts'
4
+ import { getCookies } from '../../ vendor/deno.land/std@0.175.0/http/cookie.ts'
5
5
6
6
type NextDataTransform = < T > ( data : T ) => T
7
7
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { Context } from '@netlify/edge-functions'
2
2
import {
3
3
HTMLRewriter ,
4
4
type TextChunk ,
5
- } from '../vendor/deno.land/x/htmlrewriter@v1.0.0/src/index.ts'
5
+ } from '../../ vendor/deno.land/x/htmlrewriter@v1.0.0/src/index.ts'
6
6
7
7
import { updateModifiedHeaders } from './headers.ts'
8
8
import type { StructuredLogger } from './logging.ts'
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ export async function vendorDeno({
38
38
}
39
39
40
40
console . log ( `📦 Vendoring Deno modules for '${ vendorSource } ' into '${ vendorDest } '...` )
41
- // --output=${vendorDest}
42
- await execaCommand ( `deno vendor ${ vendorSource } --force` , {
41
+ await execaCommand ( `deno --allow-import ${ vendorSource } ` , {
43
42
cwd,
44
43
} )
45
44
You can’t perform that action at this time.
0 commit comments