Skip to content

Commit

Permalink
ci: make ready for deno@2
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Sep 27, 2024
1 parent a7fe6d9 commit 80e8d1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tap/.deno.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ echo "Using $(deno --version | head -1)"

export RUST_BACKTRACE=1

deno run --allow-read --allow-net --import-map tap/import_map.json --no-npm tap/run-deno.ts
deno run --allow-read --allow-net --allow-env --import-map tap/import_map.json --no-npm tap/run-deno.ts
4 changes: 2 additions & 2 deletions tap/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export const isBun = typeof Bun !== 'undefined'
export const isElectron = typeof process !== 'undefined' && process.versions.electron !== undefined

// @ts-ignore
export const isNode = !isBun && !isElectron && typeof process !== 'undefined'
export const isDeno = typeof Deno !== 'undefined'

// @ts-ignore
export const isDeno = typeof Deno !== 'undefined'
export const isNode = !isBun && !isElectron && !isDeno && typeof process !== 'undefined'

// @ts-ignore
export const isEdgeRuntime = typeof EdgeRuntime !== 'undefined'
Expand Down

0 comments on commit 80e8d1b

Please sign in to comment.