fix(cli): fix nuxt template issues with bun

This commit is contained in:
Aman Varshney
2025-07-31 17:26:09 +05:30
parent 4096f80eed
commit 53985feabb
6 changed files with 33 additions and 9 deletions

View File

@@ -788,10 +788,10 @@ export async function handleExtras(projectDir: string, context: ProjectConfig) {
}
if (context.packageManager === "bun") {
const bunfigSrc = path.join(extrasDir, "bunfig.toml");
const bunfigSrc = path.join(extrasDir, "bunfig.toml.hbs");
const bunfigDest = path.join(projectDir, "bunfig.toml");
if (await fs.pathExists(bunfigSrc)) {
await fs.copy(bunfigSrc, bunfigDest);
await processTemplate(bunfigSrc, bunfigDest, context);
}
}