From 0aab06ca47a11382e4f1c04470677f88d3e3f3c3 Mon Sep 17 00:00:00 2001 From: weishu Date: Mon, 22 Dec 2025 16:37:16 +0800 Subject: [PATCH] fix(cli): resolve path alias with bun link using bunfig.toml configuration When the cli package is symlinked via `bun link`, tsconfig.json's `rootDir: ".."` interferes with the `@/*` path alias resolution at runtime. Add bunfig.toml to explicitly configure path aliases for Bun's runtime to fix the module resolution error. --- cli/bunfig.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 cli/bunfig.toml diff --git a/cli/bunfig.toml b/cli/bunfig.toml new file mode 100644 index 00000000..667b4a66 --- /dev/null +++ b/cli/bunfig.toml @@ -0,0 +1,2 @@ +[runtime.typescript.paths] +"@/*" = ["./src/*"]