mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix(cli): fix nuxt template issues with bun
This commit is contained in:
5
.changeset/clever-days-rescue.md
Normal file
5
.changeset/clever-days-rescue.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix nuxt template issues with bun
|
||||||
@@ -788,10 +788,10 @@ export async function handleExtras(projectDir: string, context: ProjectConfig) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (context.packageManager === "bun") {
|
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");
|
const bunfigDest = path.join(projectDir, "bunfig.toml");
|
||||||
if (await fs.pathExists(bunfigSrc)) {
|
if (await fs.pathExists(bunfigSrc)) {
|
||||||
await fs.copy(bunfigSrc, bunfigDest);
|
await processTemplate(bunfigSrc, bunfigDest, context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
[install]
|
|
||||||
linker = "isolated"
|
|
||||||
7
apps/cli/templates/extras/bunfig.toml.hbs
Normal file
7
apps/cli/templates/extras/bunfig.toml.hbs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{{#if (includes frontend "nuxt")}}
|
||||||
|
# [install]
|
||||||
|
# linker = "isolated"
|
||||||
|
{{else}}
|
||||||
|
[install]
|
||||||
|
linker = "isolated"
|
||||||
|
{{/if}}
|
||||||
@@ -13,13 +13,13 @@
|
|||||||
"@nuxt/ui": "3.3.0",
|
"@nuxt/ui": "3.3.0",
|
||||||
"@tanstack/vue-query": "^5.83.0",
|
"@tanstack/vue-query": "^5.83.0",
|
||||||
"nuxt": "^4.0.2",
|
"nuxt": "^4.0.2",
|
||||||
"tailwindcss": "^4.1.11",
|
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vue": "^3.5.18",
|
"vue": "^3.5.18",
|
||||||
"vue-router": "^4.5.1",
|
"vue-router": "^4.5.1",
|
||||||
"zod": "^4.0.2"
|
"zod": "^4.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"tailwindcss": "^4.1.11",
|
||||||
"@tanstack/vue-query-devtools": "^5.83.0",
|
"@tanstack/vue-query-devtools": "^5.83.0",
|
||||||
"@iconify-json/lucide": "^1.2.57"
|
"@iconify-json/lucide": "^1.2.57"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,23 @@
|
|||||||
{
|
{
|
||||||
// https://nuxt.com/docs/guide/concepts/typescript
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
"extends": "./.nuxt/tsconfig.json",
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.app.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.server.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.shared.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.node.json"
|
||||||
|
}
|
||||||
{{#unless (or (eq backend "convex") (eq backend "none"))}}
|
{{#unless (or (eq backend "convex") (eq backend "none"))}}
|
||||||
"references": [{
|
,
|
||||||
"path": "../server"
|
{
|
||||||
}]
|
"path": "../server"
|
||||||
|
}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user