You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.warn('\x1b[33m%s\x1b[0m','Warning: create-tsrouter-app is deprecated. Use "tanstack create" or "npx @tanstack/cli create" instead.')
3
-
console.warn('\x1b[33m%s\x1b[0m',' This will now create a TanStack Start app (with SSR). See: https://tanstack.com/start/latest/docs/framework/react/quick-start\n')
2
+
console.warn('\x1b[33m%s\x1b[0m','Warning: create-tsrouter-app is deprecated. Use "tanstack create --router-only" or "npx @tanstack/cli create --router-only" instead.')
3
+
console.warn('\x1b[33m%s\x1b[0m',' This defaults to router-only compatibility mode (file-based routing, no Start-specific add-ons).\n')
Copy file name to clipboardExpand all lines: packages/cli/src/command-line.ts
+30-10Lines changed: 30 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,26 @@ export function validateLegacyCreateFlags(cliOptions: CliOptions): {
33
33
34
34
if(cliOptions.routerOnly){
35
35
warnings.push(
36
-
'The --router-only flag is deprecated and ignored. `tanstack create` already creates router-based apps.',
36
+
'The --router-only flag enables router-only compatibility mode. Start-dependent add-ons, deployment adapters, and starters are disabled; only the base template and optional toolchain are supported.',
37
37
)
38
38
}
39
39
40
+
if(cliOptions.routerOnly&&cliOptions.addOns){
41
+
warnings.push(
42
+
'Ignoring --add-ons in router-only compatibility mode.',
43
+
)
44
+
}
45
+
46
+
if(cliOptions.routerOnly&&cliOptions.deployment){
47
+
warnings.push(
48
+
'Ignoring --deployment in router-only compatibility mode.',
49
+
)
50
+
}
51
+
52
+
if(cliOptions.routerOnly&&cliOptions.starter){
53
+
warnings.push('Ignoring --starter in router-only compatibility mode.')
54
+
}
55
+
40
56
if(cliOptions.tailwind===true){
41
57
warnings.push(
42
58
'The --tailwind flag is deprecated and ignored. Tailwind is always enabled in TanStack Start scaffolds.',
@@ -70,9 +86,7 @@ export function validateLegacyCreateFlags(cliOptions: CliOptions): {
70
86
}
71
87
}
72
88
73
-
warnings.push(
74
-
'The --template flag is deprecated. TypeScript/TSX is the default and only supported template.',
75
-
)
89
+
warnings.push('The --template flag is deprecated and mapped for compatibility.')
76
90
77
91
return{ warnings }
78
92
}
@@ -110,8 +124,14 @@ export async function normalizeOptions(
0 commit comments