Simple script and config (type-safe) for building custom Linux kernels for Firecracker MicroVMs

Refactor import statements and update deno.json configuration

- Removed the "unstable" section from deno.json.
- Updated import paths in example-toml.ts and example.ts to use the correct default-config.ts file.

+8 -12
+2 -1
.default-config default-config.ts
··· 1 - # 1 + export default `# 2 2 # Automatically generated file; DO NOT EDIT. 3 3 # Linux/x86 6.6.100 Kernel Configuration 4 4 # ··· 3577 3577 # 3578 3578 # end of Rust hacking 3579 3579 # end of Kernel hacking 3580 + `;
+1 -1
build.ts
··· 1 1 #!/usr/bin/env -S deno run --allow-run --allow-read --allow-write --allow-env --allow-net 2 2 import chalk from "chalk"; 3 - import cfg from "./.default-config" with { type: "text" }; 3 + import cfg from "./default-config.ts"; 4 4 5 5 export * from "./config.ts"; 6 6
+1 -4
deno.json
··· 11 11 "@std/toml": "jsr:@std/toml@^1.0.11", 12 12 "@zod/zod": "jsr:@zod/zod@^4.1.12", 13 13 "chalk": "npm:chalk@^5.6.2" 14 - }, 15 - "unstable": [ 16 - "raw-imports" 17 - ] 14 + } 18 15 }
+2 -3
example-toml.ts
··· 1 - 2 - import cfg from "./.default-config" with { type: "text" }; 3 - import { KernelConfigSerializer, parseKernelConfigFile } from './config.ts'; 1 + import { KernelConfigSerializer, parseKernelConfigFile } from "./config.ts"; 2 + import cfg from "./default-config.ts"; 4 3 5 4 const config = parseKernelConfigFile(cfg); 6 5
+2 -3
example.ts
··· 1 - 2 - import cfg from "./.default-config" with { type: "text" }; 3 - import { parseKernelConfigFile } from './config.ts'; 1 + import { parseKernelConfigFile } from "./config.ts"; 2 + import cfg from "./default-config.ts"; 4 3 5 4 const config = parseKernelConfigFile(cfg); 6 5