From e37d3d0e226b65264e45cc5dd47e7a758dce90b3 Mon Sep 17 00:00:00 2001 From: Debiprasad Das Date: Wed, 27 Nov 2024 15:23:49 +0530 Subject: [PATCH 1/2] add --allow-import flag in start script --- scripts/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index 3fee561..b1a818c 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,2 +1,2 @@ BASE_URL=https://raw.githubusercontent.com/xorgram/xor/$(deno eval "await Deno.stdout.write(new TextEncoder().encode((await (await fetch(\"https://api.github.com/repos/xorgram/xor/tags\")).json())[0].name))") -deno run --allow-env --allow-net --allow-read --allow-run --allow-write --import-map=$BASE_URL/import_map.json -r $BASE_URL/main.ts +deno run --allow-env --allow-net --allow-read --allow-run --allow-write --allow-import --import-map=$BASE_URL/import_map.json -r $BASE_URL/main.ts From 99c5aa8fdbf66d6b934f3c07e01aad5372e4cda5 Mon Sep 17 00:00:00 2001 From: Debiprasad Das Date: Wed, 27 Nov 2024 15:27:43 +0530 Subject: [PATCH 2/2] Update start.ps1 --- scripts/start.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.ps1 b/scripts/start.ps1 index 7e589cf..7a25290 100644 --- a/scripts/start.ps1 +++ b/scripts/start.ps1 @@ -1,2 +1,2 @@ $BaseUrl = "https://raw.githubusercontent.com/xorgram/xor/$((Invoke-RestMethod -Uri "https://api.github.com/repos/xorgram/xor/tags")[0].name)" -deno run --allow-env --allow-net --allow-read --allow-run --allow-write --import-map=$BaseUrl/import_map.json -r $BaseUrl/main.ts +deno run --allow-env --allow-net --allow-read --allow-run --allow-write --allow-import --import-map=$BaseUrl/import_map.json -r $BaseUrl/main.ts