Skip to content

Commit

Permalink
load .env when running nbs
Browse files Browse the repository at this point in the history
  • Loading branch information
callmephilip committed Dec 17, 2024
1 parent 1c2dd3a commit b0fd8e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 2 additions & 7 deletions bin/runnbs.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@std/dotenv/load";

import { getConfig } from "jurassic/config.ts";
import path from "node:path";

Expand Down Expand Up @@ -26,13 +28,6 @@ if (import.meta.main) {
stdout: "piped",
});
const child = command.spawn();

// open a file and pipe the subprocess output to it.
// child.stdout.pipeTo(
// Deno.openSync("output", { write: true, create: true }).writable,
// );

// manually close stdin
child.stdin.close();
return child.status;
}),
Expand Down
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jurassic/jurassic",
"version": "0.1.30",
"version": "0.1.31",
"license": "MIT",
"tasks": {
"build": "deno run -A --reload jsr:@jurassic/jurassic/export . && deno task runnbs && deno lint && deno fmt && deno task clean && deno test --allow-all",
Expand All @@ -21,6 +21,7 @@
"exclude": ["nbs/", "docs/"]
},
"imports": {
"@std/dotenv": "jsr:@std/dotenv@^0.225.3",
"@std/fs": "jsr:@std/fs@^1.0.6",
"typescript": "npm:typescript@^5.7.2",
"zod": "npm:zod@^3.23.8",
Expand Down
5 changes: 5 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0fd8e8

Please sign in to comment.