summaryrefslogtreecommitdiff
path: root/packages/create-astro/src/frameworks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/create-astro/src/frameworks.ts')
-rw-r--r--packages/create-astro/src/frameworks.ts27
1 files changed, 16 insertions, 11 deletions
diff --git a/packages/create-astro/src/frameworks.ts b/packages/create-astro/src/frameworks.ts
index 0290c1c96..0483b7474 100644
--- a/packages/create-astro/src/frameworks.ts
+++ b/packages/create-astro/src/frameworks.ts
@@ -107,25 +107,30 @@ export default {
},
};
-export const FRAMEWORKS = [
+export interface Integration {
+ id: string;
+ packageName: string;
+}
+
+export const FRAMEWORKS: { title: string; value: Integration }[] = [
{
- title: 'preact',
- value: '@astrojs/preact',
+ title: 'Preact',
+ value: { id: 'preact', packageName: '@astrojs/preact' },
},
{
- title: 'react',
- value: 'react',
+ title: 'React',
+ value: { id: 'react', packageName: '@astrojs/react' },
},
{
- title: 'solid',
- value: 'solid',
+ title: 'Solid.js',
+ value: { id: 'solid', packageName: '@astrojs/solid-js' },
},
{
- title: 'svelte',
- value: 'svelte',
+ title: 'Svelte',
+ value: { id: 'svelte', packageName: '@astrojs/svelte' },
},
{
- title: 'vue',
- value: 'vue',
+ title: 'Vue',
+ value: { id: 'vue', packageName: '@astrojs/vue' },
},
];