Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Sep 27, 2024
1 parent 5acc138 commit 7e89b5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"lock": false,
"tasks": {
"test": "deno test -A --parallel--trace-leaks",
"test": "deno test -A --parallel --trace-leaks",
"check:types": "deno check **/*.ts",
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test",
"wasmbuild": "deno run -A jsr:@deno/[email protected] --sync --out src/wasm"
Expand Down
6 changes: 5 additions & 1 deletion src/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ async function info(
specifier: string,
options: InfoOptions,
): Promise<InfoOutput> {
const args = ["info", "--json"];
if (!Deno.version.deno.startsWith("1.")) {
args.push("--allow-import");
}
const opts = {
args: ["info", "--json", "--allow-import"],
args,
cwd: undefined as string | undefined,
env: { DENO_NO_PACKAGE_JSON: "true" } as Record<string, string>,
stdout: "piped",
Expand Down

0 comments on commit 7e89b5b

Please sign in to comment.