Skip to content

Commit 46651fb

Browse files
fix composite error
1 parent 591ecf8 commit 46651fb

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.changeset/slow-squids-attend.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+
add composite in server for references

apps/cli/templates/backend/server/next/tsconfig.json renamed to apps/cli/templates/backend/server/next/tsconfig.json.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
"name": "next"
1919
}
2020
],
21+
{#unless (or (eq backend "convex") (eq backend "none"))}}
22+
"composite": true,
23+
{{/unless}}
2124
"paths": {
2225
"@/*": ["./src/*"]
2326
}

apps/cli/templates/backend/server/server-base/tsconfig.json.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"node", "bun"
2121
{{/if}}
2222
],
23+
{{#unless (or (eq backend "convex") (eq backend "none"))}}
24+
"composite": true,
25+
{{/unless}}
2326
"jsx": "react-jsx"{{#if (eq backend 'hono')}},
2427
"jsxImportSource": "hono/jsx"{{/if}}
2528
},

apps/cli/templates/frontend/native/nativewind/app/(drawer)/_layout.tsx.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const DrawerLayout = () => {
99
<Drawer>
1010
<Drawer.Screen
1111
name="index"
12-
options={{
12+
options=\{{
1313
headerTitle: "Home",
1414
drawerLabel: "Home",
1515
drawerIcon: ({ size, color }) => (
@@ -20,7 +20,7 @@ const DrawerLayout = () => {
2020
{{#if (includes examples "todo")}}
2121
<Drawer.Screen
2222
name="todos"
23-
options={{
23+
options=\{{
2424
headerTitle: "Todos",
2525
drawerLabel: "Todos",
2626
drawerIcon: ({ size, color }) => (
@@ -31,7 +31,7 @@ const DrawerLayout = () => {
3131
{{/if}}
3232
<Drawer.Screen
3333
name="(tabs)"
34-
options={{
34+
options=\{{
3535
headerTitle: "Tabs",
3636
drawerLabel: "Tabs",
3737
drawerIcon: ({ size, color }) => (

0 commit comments

Comments
 (0)