add tanstack start

This commit is contained in:
Aman Varshney
2025-04-06 18:07:40 +05:30
parent 702eb2ecb5
commit d943bf0d80
44 changed files with 1559 additions and 70 deletions

View File

@@ -9,7 +9,7 @@ export async function getAddonsChoice(
): Promise<ProjectAddons[]> {
if (Addons !== undefined) return Addons;
const hasWeb =
const hasCompatibleWebFrontend =
frontends?.includes("react-router") ||
frontends?.includes("tanstack-router");
@@ -39,10 +39,13 @@ export async function getAddonsChoice(
},
];
const options = hasWeb ? [...webAddonOptions, ...addonOptions] : addonOptions;
const options = hasCompatibleWebFrontend
? [...webAddonOptions, ...addonOptions]
: addonOptions;
const initialValues = DEFAULT_CONFIG.addons.filter(
(addon) => hasWeb || (addon !== "pwa" && addon !== "tauri"),
(addon) =>
hasCompatibleWebFrontend || (addon !== "pwa" && addon !== "tauri"),
);
const response = await multiselect<ProjectAddons>({