UNPKG

@stryke/prisma-trpc-generator

Version:

A fork of the prisma-trpc-generator code to work in ESM with Prisma v6.

26 lines (24 loc) 819 B
const require_get_prisma_internals = require('./utils/get-prisma-internals.cjs'); const require_prisma_generator = require('./prisma-generator.cjs'); //#region src/index.ts /** * The prisma-trpc-generator library used by Storm Software for building NodeJS applications. * * @remarks * A fork of the prisma-trpc-generator code to work in ESM * * @packageDocumentation */ require_get_prisma_internals.getPrismaGeneratorHelper().then((helpers) => { helpers.generatorHandler({ onManifest: () => ({ defaultOutput: "./generated", prettyName: "Storm Software - Prisma tRPC Generator", requiresGenerators: ["prisma-client-js"] }), onGenerate: require_prisma_generator.generate }); }).catch((reason) => { console.error(`An error occured while generating prisma tRPC source code: ${reason}`); }); //#endregion