Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/create-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ const FRAMEWORKS: Framework[] = [
color: cyan,
customCommand: 'npm create react-router@latest TARGET_DIR',
},
{
name: 'custom-tanstack-router',
display: 'TanStack Router ↗',
color: cyan,
customCommand: 'npm create -- create-tsrouter-app@latest TARGET_DIR --framework react',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the create- be removed here?

Suggested change
customCommand: 'npm create -- create-tsrouter-app@latest TARGET_DIR --framework react',
customCommand: 'npm create tsrouter-app@latest -- TARGET_DIR --framework react',

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, let me try that!

},
],
},
{
Expand Down Expand Up @@ -223,6 +229,12 @@ const FRAMEWORKS: Framework[] = [
display: 'JavaScript',
color: yellow,
},
{
name: 'custom-tanstack-router',
display: 'TanStack Router ↗',
color: cyan,
customCommand: 'npm create -- create-tsrouter-app@latest TARGET_DIR --framework solid',
},
],
},
{
Expand Down
Loading