Skip to content

Commit b1040e1

Browse files
author
Nap Joseph Calub
committed
feat: use new library
1 parent feb566d commit b1040e1

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

deno.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
"tailwindcss": "npm:tailwindcss@3.4.1",
2727
"tailwindcss/": "npm:/tailwindcss@3.4.1/",
2828
"tailwindcss/plugin": "npm:/tailwindcss@3.4.1/plugin.js",
29-
"$std/": "https://deno.land/std@0.224.0/"
29+
"$std/": "https://deno.land/std@0.224.0/",
30+
"@std/dotenv": "jsr:@std/dotenv@^0.225.5",
31+
"@std/path": "jsr:@std/path@^1.1.1"
3032
},
3133
"compilerOptions": {
3234
"jsx": "react-jsx",

scripts/migrations.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// deno run --allow-read --allow-write --allow-net scripts/migrations.ts <command> [...args]
22

3-
import { join } from "$std/path/mod.ts";
4-
import * as dotenv from "$std/dotenv/mod.ts";
3+
import { join } from "@std/path";
4+
import "@std/dotenv/load";
55
import { RecordId, Surreal } from "surrealdb";
66

7-
// --- LOAD ENV ---
8-
await dotenv.load({ export: true });
9-
107
// --- CONFIG ---
118
const SURREALDB_PROTOCOL = Deno.env.get("SURREALDB_PROTOCOL");
129
const SURREALDB_HOST = Deno.env.get("SURREALDB_HOST");

0 commit comments

Comments
 (0)