Skip to content

Commit

Permalink
Load .env in main.ts instead of lib files
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Sep 9, 2024
1 parent 9fff428 commit ea83a1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"./http": "./lib/http/mod.ts"
},
"tasks": {
"dev": "deno run --watch --env --unstable-kv -A main.ts",
"run": "deno run --env --unstable-kv -A main.ts",
"dev": "deno run --watch --unstable-kv -A main.ts",
"run": "deno run --unstable-kv -A main.ts",
"test": "DATA_DIR=data-test ASN_PREFIX=ASN ASN_NAMESPACE_RANGE=50 ASN_ENABLE_NAMESPACE_EXTANSION=1 deno test --unstable-kv -A",
"lint": "deno lint",
"check": "deno check main.ts",
Expand Down
1 change: 0 additions & 1 deletion lib/common/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { z } from "@collinhacks/zod";
import "@std/dotenv/load";
import {
type AdditionalManagedNamespace,
deserializeAdditionalManagedNamespaces,
Expand Down
1 change: 1 addition & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* Note that this only gets run when the module is the main module (`import.meta.main === true`).
* Therefore, the CLI won't run by itself when you import this module in another module.
*/
import "@std/dotenv/load";
import { parseArgs } from "@std/cli/parse-args";
import { validateDB } from "$common/mod.ts";

Expand Down

0 comments on commit ea83a1f

Please sign in to comment.