Skip to content

Commit 0225132

Browse files
committed
publish up
1 parent daade5f commit 0225132

10 files changed

Lines changed: 29 additions & 10 deletions

File tree

cli-aliases/create-start-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-start-app",
3-
"version": "0.48.2",
3+
"version": "0.48.8",
44
"description": "Tanstack Start Builder",
55
"bin": "./dist/index.js",
66
"type": "module",

cli-aliases/create-tanstack-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-tanstack-app",
3-
"version": "0.43.2",
3+
"version": "0.43.6",
44
"description": "Tanstack Application Builder",
55
"bin": "./dist/index.js",
66
"type": "module",

cli-aliases/create-tanstack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-tanstack",
3-
"version": "0.43.2",
3+
"version": "0.43.6",
44
"description": "Tanstack Application Builder",
55
"bin": "./dist/index.js",
66
"type": "module",

cli-aliases/create-tsrouter-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-tsrouter-app",
3-
"version": "0.43.2",
3+
"version": "0.43.7",
44
"description": "Tanstack Application Builder",
55
"bin": "./dist/index.js",
66
"type": "module",

cli-aliases/create-tsrouter-app/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
2-
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', ' 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', ' See: https://tanstack.com/router/latest/docs/framework/react/quick-start\n')
44

55
import { cli } from '@tanstack/cli'
66

cli-aliases/ts-create-start/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/create-start",
3-
"version": "0.48.2",
3+
"version": "0.48.8",
44
"description": "Tanstack Start Builder",
55
"bin": "./dist/index.js",
66
"type": "module",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/cli",
3-
"version": "0.48.2",
3+
"version": "0.48.5",
44
"description": "TanStack CLI",
55
"type": "module",
66
"main": "./dist/index.js",

packages/cli/src/cli.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,22 @@ export function cli({
289289
cliOptions.template = defaultMode as TemplateOptions
290290
}
291291

292+
// Default to Start unless --router-only is specified
293+
// Skip this if forcedAddOns already includes 'start' (e.g., from cli-aliases)
294+
if (!options.routerOnly && !forcedAddOns.includes('start')) {
295+
if (Array.isArray(cliOptions.addOns)) {
296+
if (!cliOptions.addOns.includes('start')) {
297+
cliOptions.addOns = [...cliOptions.addOns, 'start']
298+
}
299+
} else if (cliOptions.addOns !== true) {
300+
cliOptions.addOns = ['start']
301+
}
302+
// Also set template to file-router for Start
303+
if (!cliOptions.template) {
304+
cliOptions.template = 'file-router'
305+
}
306+
}
307+
292308
let finalOptions: Options | undefined
293309
if (cliOptions.interactive) {
294310
cliOptions.addOns = true
@@ -470,6 +486,7 @@ export function cli({
470486
}
471487

472488
cmd
489+
.option('--router-only', 'create a Router-only SPA without TanStack Start (SSR)', false)
473490
.option('--interactive', 'interactive mode', false)
474491
.option('--tailwind', 'add Tailwind CSS')
475492
.option('--no-tailwind', 'skip Tailwind CSS')
@@ -509,9 +526,10 @@ export function cli({
509526
}
510527

511528
// === CREATE SUBCOMMAND ===
529+
// By default creates a TanStack Start app. Use --router-only for SPA without Start.
512530
const createCommand = program
513531
.command('create')
514-
.description(`Create a new ${appName} application`)
532+
.description(`Create a new TanStack Start application`)
515533

516534
configureCreateCommand(createCommand)
517535
createCommand.action(handleCreate)

packages/cli/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ export interface CliOptions {
2424
install?: boolean
2525
addOnConfig?: string
2626
force?: boolean
27+
routerOnly?: boolean
2728
}

packages/create-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/create-ui",
3-
"version": "0.48.2",
3+
"version": "0.48.3",
44
"type": "module",
55
"main": "./lib-dist/index.js",
66
"types": "./lib-dist/index.d.ts",

0 commit comments

Comments
 (0)