UNPKG

pncat

Version:

A unified cli tool that enhances package managers catalogs feature.

46 lines (45 loc) 1.22 kB
//#region src/rules.ts const DEFAULT_CATALOG_RULES = [ { name: "types", match: [/^@types\//], priority: 10 }, { name: "test", match: [/(^|[@/.-])(vitest|jest|cypress|playwright|test|testing)($|[@/.-])/], priority: 20 }, { name: "lint", match: [/(^|[@/.-])(eslint|prettier|stylelint|biome|knip|cspell|typecheck|tsc|lint-staged)($|[@/.-])/], priority: 20 }, { name: "docs", match: [/(^|[@/.-])(vitepress|fumadocs|storybook)($|[@/.-])/], priority: 20 }, { name: "build", match: [/(^|[@/.-])(vite|vitejs|webpack|rollup|rolldown|rspack|esbuild|tsup|tsdown|unbuild|unplugin)($|[@/.-])/], priority: 20 }, { name: "icons", match: [/(^|[@/.-])(iconify|lucide|hugeicons|phosphor|remixicon|@tabler\/icons|tabler-icons)($|[@/.-])/], priority: 30 }, { name: "frontend", match: [/(^|[@/.-])(vue|pinia|@vueuse|react|zustand|redux|solid|solidjs|svelte|tailwindcss|unocss)($|[@/.-])/], priority: 30 }, { name: "backend", match: [/(^|[@/.-])(express|koa|nestjs|fastify|hono|prisma|drizzle|typeorm|kysely|postgres|pg|mysql2|sqlite|sqlite3|mongodb|redis|ioredis)($|[@/.-])/], priority: 30 } ]; //#endregion export { DEFAULT_CATALOG_RULES, DEFAULT_CATALOG_RULES as default };