Skip to main content

Variable: CONFIG_TEMPLATE_MONOREPO

const CONFIG_TEMPLATE_MONOREPO: "import { defineConfig } from 'kurotako'\n// import { prismaParser } from '@kurotako/parser-prisma'\n// import { typescriptGenerator } from '@kurotako/gen-typescript'\n// import { zodGenerator } from '@kurotako/gen-zod'\n\n// Monorepo layout: this file sits at the workspace root, but the schema lives in\n// a sub-project. `options.schema` is always resolved relative to THIS config\n// file, not to the schema's package.\n//\n// `@prisma/internals` is resolved from the schema's directory (walking up\n// `node_modules`), so it can be a devDependency of the sub-project holding the\n// schema — it does not have to be hoisted to the workspace root.\n\nexport default defineConfig({\n sources: {\n // pg: { use: prismaParser, options: { schema: './libs/db/prisma/schema.prisma' } },\n },\n generators: [\n // { use: typescriptGenerator },\n // { use: zodGenerator },\n ],\n // One destination per sub-project, narrowed with the `generators` filter.\n outputs: [\n { dir: './libs/db/src/generated', generators: ['zod'] },\n { dir: './apps/web/src/generated' },\n ],\n})\n";

Defined in: packages/config/src/template.ts:24