Skip to content

Commit 53985fe

Browse files
fix(cli): fix nuxt template issues with bun
1 parent 4096f80 commit 53985fe

File tree

6 files changed

+33
-9
lines changed

6 files changed

+33
-9
lines changed

.changeset/clever-days-rescue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-better-t-stack": patch
3+
---
4+
5+
fix nuxt template issues with bun

apps/cli/src/helpers/project-generation/template-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,10 +788,10 @@ export async function handleExtras(projectDir: string, context: ProjectConfig) {
788788
}
789789

790790
if (context.packageManager === "bun") {
791-
const bunfigSrc = path.join(extrasDir, "bunfig.toml");
791+
const bunfigSrc = path.join(extrasDir, "bunfig.toml.hbs");
792792
const bunfigDest = path.join(projectDir, "bunfig.toml");
793793
if (await fs.pathExists(bunfigSrc)) {
794-
await fs.copy(bunfigSrc, bunfigDest);
794+
await processTemplate(bunfigSrc, bunfigDest, context);
795795
}
796796
}
797797

apps/cli/templates/extras/bunfig.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{#if (includes frontend "nuxt")}}
2+
# [install]
3+
# linker = "isolated"
4+
{{else}}
5+
[install]
6+
linker = "isolated"
7+
{{/if}}

apps/cli/templates/frontend/nuxt/package.json.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
"@nuxt/ui": "3.3.0",
1414
"@tanstack/vue-query": "^5.83.0",
1515
"nuxt": "^4.0.2",
16-
"tailwindcss": "^4.1.11",
1716
"typescript": "^5.8.3",
1817
"vue": "^3.5.18",
1918
"vue-router": "^4.5.1",
2019
"zod": "^4.0.2"
2120
},
2221
"devDependencies": {
22+
"tailwindcss": "^4.1.11",
2323
"@tanstack/vue-query-devtools": "^5.83.0",
2424
"@iconify-json/lucide": "^1.2.57"
2525
}
Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
{
22
// https://nuxt.com/docs/guide/concepts/typescript
3-
"extends": "./.nuxt/tsconfig.json",
3+
"references": [
4+
{
5+
"path": "./.nuxt/tsconfig.app.json"
6+
},
7+
{
8+
"path": "./.nuxt/tsconfig.server.json"
9+
},
10+
{
11+
"path": "./.nuxt/tsconfig.shared.json"
12+
},
13+
{
14+
"path": "./.nuxt/tsconfig.node.json"
15+
}
416
{{#unless (or (eq backend "convex") (eq backend "none"))}}
5-
"references": [{
6-
"path": "../server"
7-
}]
17+
,
18+
{
19+
"path": "../server"
20+
}
821
{{/unless}}
22+
]
923
}

0 commit comments

Comments
 (0)