UNPKG

@stryke/prisma-trpc-generator

Version:

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

28 lines (26 loc) 791 B
import { getPrismaGeneratorHelper } from "./utils/get-prisma-internals.mjs"; import { generate } from "./prisma-generator.mjs"; //#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 */ getPrismaGeneratorHelper().then((helpers) => { helpers.generatorHandler({ onManifest: () => ({ defaultOutput: "./generated", prettyName: "Storm Software - Prisma tRPC Generator", requiresGenerators: ["prisma-client-js"] }), onGenerate: generate }); }).catch((reason) => { console.error(`An error occured while generating prisma tRPC source code: ${reason}`); }); //#endregion export { }; //# sourceMappingURL=index.mjs.map