diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 75523b2..b7efde2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,4 +15,4 @@ ] } } -} \ No newline at end of file +} diff --git a/deno.json b/deno.json index b699e38..2d4c392 100644 --- a/deno.json +++ b/deno.json @@ -1,14 +1,13 @@ { "tasks": { "dev": "deno serve --watch -R src/main.ts", - "test":"deno test --allow-read=. --allow-env", - "deploy": "deno run --allow-read=. --allow-env --allow-run scripts/deploy.ts", - "deploy-prod": "deno run --allow-read=. --allow-env --allow-run scripts/deploy.ts --prod" + "test": "deno test --allow-env --env-file=.env", + "deploy": "deno run --allow-env --env-file=.env --allow-run=deployctl scripts/deploy.ts", + "deploy-prod": "deno run --allow-env --env-file=.env --allow-run=deployctl scripts/deploy.ts --prod" }, "imports": { "@octokit/webhooks": "npm:@octokit/webhooks@^13.8.0", "@std/assert": "jsr:@std/assert@1", - "@std/dotenv": "jsr:@std/dotenv@^0.225.3", "@std/http": "jsr:@std/http@1", "misskey-js": "npm:misskey-js@^2025.4.1-alpha.2" }, diff --git a/deno.lock b/deno.lock index 68f4c2f..aa166f1 100644 --- a/deno.lock +++ b/deno.lock @@ -3,7 +3,6 @@ "specifiers": { "jsr:@std/assert@1": "1.0.13", "jsr:@std/cli@^1.0.17": "1.0.17", - "jsr:@std/dotenv@~0.225.3": "0.225.3", "jsr:@std/encoding@^1.0.10": "1.0.10", "jsr:@std/fmt@^1.0.7": "1.0.7", "jsr:@std/html@^1.0.3": "1.0.3", @@ -26,9 +25,6 @@ "@std/cli@1.0.17": { "integrity": "e15b9abe629e17be90cc6216327f03a29eae613365f1353837fa749aad29ce7b" }, - "@std/dotenv@0.225.3": { - "integrity": "a95e5b812c27b0854c52acbae215856d9cce9d4bbf774d938c51d212711e8d4a" - }, "@std/encoding@1.0.10": { "integrity": "8783c6384a2d13abd5e9e87a7ae0520a30e9f56aeeaa3bdf910a3eaaf5c811a1" }, @@ -118,7 +114,6 @@ "workspace": { "dependencies": [ "jsr:@std/assert@1", - "jsr:@std/dotenv@~0.225.3", "jsr:@std/http@1", "npm:@octokit/webhooks@^13.8.0", "npm:misskey-js@^2025.4.1-alpha.2" diff --git a/src/util/env.ts b/src/util/env.ts index b8147fd..01f718d 100644 --- a/src/util/env.ts +++ b/src/util/env.ts @@ -1,4 +1,3 @@ -import "@std/dotenv/load"; import { Optional } from "./optional.ts"; import { throws } from "./syntax.ts";