@stryke/prisma-trpc-generator
Version:
A fork of the prisma-trpc-generator code to work in ESM with Prisma v6.
1 lines • 1.94 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The prisma-trpc-generator library used by Storm Software for building NodeJS applications.\n *\n * @remarks\n * A fork of the prisma-trpc-generator code to work in ESM\n *\n * @packageDocumentation\n */\n\nimport { generate } from \"./prisma-generator\";\nimport { getPrismaGeneratorHelper } from \"./utils/get-prisma-internals\";\n\ngetPrismaGeneratorHelper()\n .then(helpers => {\n helpers.generatorHandler({\n onManifest: () => ({\n defaultOutput: \"./generated\",\n prettyName: \"Storm Software - Prisma tRPC Generator\",\n requiresGenerators: [\"prisma-client-js\"]\n }),\n onGenerate: generate\n });\n })\n .catch(reason => {\n // eslint-disable-next-line no-console\n console.error(\n `An error occured while generating prisma tRPC source code: ${reason}`\n );\n });\n"],"mappings":";;;;;;;;;;;;AA8BA,0BAA0B,CACvB,MAAK,YAAW;AACf,SAAQ,iBAAiB;EACvB,mBAAmB;GACjB,eAAe;GACf,YAAY;GACZ,oBAAoB,CAAC,mBAAmB;GACzC;EACD,YAAY;EACb,CAAC;EACF,CACD,OAAM,WAAU;AAEf,SAAQ,MACN,8DAA8D,SAC/D;EACD"}