use fallow_config::EntryPointRole;
pub(super) const TEST_ENTRY_POINT_PLUGINS: &[&str] = &[
"ava",
"bun",
"deno",
"cucumber",
"cypress",
"jasmine",
"jest",
"k6",
"mocha",
"playwright",
"rstest",
"tap",
"tsd",
"vitest",
"webdriverio",
];
pub(super) const RUNTIME_ENTRY_POINT_PLUGINS: &[&str] = &[
"adonis",
"angular",
"astro",
"browser-extension",
"convex",
"docusaurus",
"egg",
"electron",
"ember",
"eve",
"expo",
"expo-router",
"flue",
"gatsby",
"gnome-shell-extension",
"hardhat",
"kibana",
"module-federation",
"nestjs",
"next-intl",
"nextjs",
"nitro",
"nuxt",
"obsidian",
"parcel",
"qwik",
"react-native",
"react-router",
"redwoodsdk",
"remix",
"rolldown",
"rollup",
"rsbuild",
"rspack",
"sanity",
"solid-start",
"supabase",
"sveltekit",
"tanstack-router",
"tsdown",
"tsup",
"vercel",
"vite",
"vite-plus",
"vitepress",
"waku",
"webpack",
"wrangler",
"wxt",
];
#[cfg(test)]
pub(super) const SUPPORT_ENTRY_POINT_PLUGINS: &[&str] = &[
"alchemy",
"content-collections",
"contentlayer",
"danger",
"drizzle",
"dumi",
"fumadocs",
"gulp",
"i18next",
"knex",
"kysely",
"mintlify",
"msw",
"opencode",
"prisma",
"storybook",
"stryker",
"typeorm",
"velite",
];
pub(super) fn builtin_entry_point_role(name: &str) -> EntryPointRole {
if TEST_ENTRY_POINT_PLUGINS.contains(&name) {
EntryPointRole::Test
} else if RUNTIME_ENTRY_POINT_PLUGINS.contains(&name) {
EntryPointRole::Runtime
} else {
EntryPointRole::Support
}
}