From 9dc8ea25e802c2790441cb24a80dd4af01715df3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 22 Jun 2024 02:29:49 +0900 Subject: feat(blog/nuldoc): create config file, nuldoc.toml --- vhosts/blog/nuldoc-src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vhosts/blog/nuldoc-src/main.ts') diff --git a/vhosts/blog/nuldoc-src/main.ts b/vhosts/blog/nuldoc-src/main.ts index 8598d80c..af6acc2e 100644 --- a/vhosts/blog/nuldoc-src/main.ts +++ b/vhosts/blog/nuldoc-src/main.ts @@ -1,7 +1,9 @@ import { runBuildCommand } from "./commands/build.ts"; import { runNewCommand } from "./commands/new.ts"; import { runServeCommand } from "./commands/serve.ts"; -import { config } from "./config.ts"; +import { getDefaultConfigPath, loadConfig } from "./config.ts"; + +const config = await loadConfig(getDefaultConfigPath()); if (import.meta.main) { const command = Deno.args[0] ?? "build"; -- cgit v1.2.3-70-g09d2