From 8b7df008d0e1a019c46538dac40ad49691258403 Mon Sep 17 00:00:00 2001 From: pegasust Date: Sat, 3 Dec 2022 06:20:24 +0000 Subject: [PATCH] bug: running ./run.sh points deno to ~/nixos/.local/share/nvim/mason/bin/deno for some weird reasons --- 2022/d3/deno.jsonc | 1 - 2022/d3/run.sh | 4 ++-- 2022/d3/src/d3_deno.ts | 0 3 files changed, 2 insertions(+), 3 deletions(-) mode change 100644 => 100755 2022/d3/run.sh mode change 100644 => 100755 2022/d3/src/d3_deno.ts diff --git a/2022/d3/deno.jsonc b/2022/d3/deno.jsonc index 4a6aaeb..a911791 100644 --- a/2022/d3/deno.jsonc +++ b/2022/d3/deno.jsonc @@ -6,7 +6,6 @@ ], "strict": true }, - "importMap": "import_map.json", "lint": { "files": { "include": [ diff --git a/2022/d3/run.sh b/2022/d3/run.sh old mode 100644 new mode 100755 index 56fc57f..3848496 --- a/2022/d3/run.sh +++ b/2022/d3/run.sh @@ -2,9 +2,9 @@ # Runs deno at src/d3_deno.ts with arguments ["example.txt"] echo "example.txt" -deno run --allow-read src/d3_deno.ts "example.txt" +deno run --allow-read "${PWD}/src/d3_deno.ts" "${PWD}/data/example.txt" echo "submission.txt" -deno run --allow-read src/d3_deno.ts "submission.txt" +deno run --allow-read "${PWD}/src/d3_deno.ts" "${PWD}/data/submission.txt" diff --git a/2022/d3/src/d3_deno.ts b/2022/d3/src/d3_deno.ts old mode 100644 new mode 100755