Skip to content

Commit a1ba808

Browse files
committed
fix: mode as typescript when hybrid CLI and UI
1 parent 5b99872 commit a1ba808

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/options.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ export async function promptForOptions(
157157
}
158158
options.mode = routerType as typeof CODE_ROUTER | typeof FILE_ROUTER
159159
} else {
160-
options.mode = cliOptions.template as
161-
| typeof CODE_ROUTER
162-
| typeof FILE_ROUTER
160+
options.mode =
161+
cliOptions.template === 'file-router' ? FILE_ROUTER : CODE_ROUTER
163162
if (options.mode === FILE_ROUTER) {
164163
options.typescript = true
165164
}

0 commit comments

Comments
 (0)