diff --git a/build.ts b/build.ts index 5faa43c..c60f0a2 100755 --- a/build.ts +++ b/build.ts @@ -1,6 +1,6 @@ #!/usr/bin/env -S deno run --allow-run --allow-read --allow-write --allow-env --allow-net import chalk from "chalk"; -import cfg from "./.default-config" with { type: "text" }; +import cfg from "./default-config.ts"; export * from "./config.ts"; diff --git a/.default-config b/default-config.ts similarity index 99% rename from .default-config rename to default-config.ts index 2bfe082..ea744dd 100644 --- a/.default-config +++ b/default-config.ts @@ -1,4 +1,4 @@ -# +export default `# # Automatically generated file; DO NOT EDIT. # Linux/x86 6.6.100 Kernel Configuration # @@ -3577,3 +3577,4 @@ CONFIG_ARCH_USE_MEMTEST=y # # end of Rust hacking # end of Kernel hacking +`; diff --git a/deno.json b/deno.json index 11dbf44..207c10e 100644 --- a/deno.json +++ b/deno.json @@ -11,8 +11,5 @@ "@std/toml": "jsr:@std/toml@^1.0.11", "@zod/zod": "jsr:@zod/zod@^4.1.12", "chalk": "npm:chalk@^5.6.2" - }, - "unstable": [ - "raw-imports" - ] + } } \ No newline at end of file diff --git a/example-toml.ts b/example-toml.ts index 23f298a..dd55d4a 100644 --- a/example-toml.ts +++ b/example-toml.ts @@ -1,6 +1,5 @@ - -import cfg from "./.default-config" with { type: "text" }; -import { KernelConfigSerializer, parseKernelConfigFile } from './config.ts'; +import { KernelConfigSerializer, parseKernelConfigFile } from "./config.ts"; +import cfg from "./default-config.ts"; const config = parseKernelConfigFile(cfg); diff --git a/example.ts b/example.ts index b75321a..a336ef9 100644 --- a/example.ts +++ b/example.ts @@ -1,6 +1,5 @@ - -import cfg from "./.default-config" with { type: "text" }; -import { parseKernelConfigFile } from './config.ts'; +import { parseKernelConfigFile } from "./config.ts"; +import cfg from "./default-config.ts"; const config = parseKernelConfigFile(cfg);