diff --git a/packages/config/deno.json b/packages/config/deno.json index 66e409d..463e8eb 100644 --- a/packages/config/deno.json +++ b/packages/config/deno.json @@ -1,7 +1,5 @@ { "imports": { - "@std/fs": "jsr:@std/fs@^1.0.6", - "@std/path": "jsr:@std/path@^1.0.8", - "@std/yaml": "jsr:@std/yaml@^1.0.5" + "yaml": "npm:yaml@^2.6.1" } } diff --git a/packages/config/karr_config.yaml b/packages/config/karr_config.yaml index 16cc383..6950510 100644 --- a/packages/config/karr_config.yaml +++ b/packages/config/karr_config.yaml @@ -1,4 +1,4 @@ -application_name: Karr Auth +application_name: Karr Demo database: name: karr diff --git a/packages/config/src/importer.ts b/packages/config/src/importer.ts index efd09d9..5eb66ea 100644 --- a/packages/config/src/importer.ts +++ b/packages/config/src/importer.ts @@ -1,6 +1,10 @@ -import { parse } from "@std/yaml" -import { dirname, fromFileUrl, join } from "@std/path" -import { existsSync } from "@std/fs" +import { parse } from "yaml" +//deno-lint-ignore no-external-import +import { dirname, join } from "node:path" +//deno-lint-ignore no-external-import +import { existsSync } from "node:fs" +//deno-lint-ignore no-external-import +import { fileURLToPath } from "node:url" import { logger } from "@util" import defaultConfig from "./default_config.json" with { type: "json" } @@ -8,7 +12,7 @@ import defaultConfig from "./default_config.json" with { type: "json" } type Config = typeof defaultConfig function resolvePath(file: string) { - return join(dirname(fromFileUrl(import.meta.url)), file) + return join(dirname(fileURLToPath(import.meta.url)), file) } function parseFile(file: string = "../karr_config.yaml") {