Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

utils.ts

8 lines244 Bytes

1import type { TemplateOptions } from './types.js'
2​
3export function convertTemplateToMode(template: TemplateOptions): string {
4 if (template === 'typescript' || template === 'javascript') {
5 return 'code-router'
6 }
7 return 'file-router'
8}