prisma-json-types-generator
Advanced tools
Comparing version
@@ -14,3 +14,3 @@ "use strict"; | ||
const nsName = options.generator.config.namespace || 'PrismaJson'; | ||
const { content, replacer, sourcePath, update } = await (0, reader_1.readPrismaDeclarations)(nsName, options.generator.config.output, options.schemaPath); | ||
const { content, replacer, sourcePath, update } = await (0, reader_1.readPrismaDeclarations)(nsName, options.generator.output?.value, options.schemaPath); | ||
const tsSource = typescript_1.default.createSourceFile(sourcePath, content, typescript_1.default.ScriptTarget.ESNext, true, typescript_1.default.ScriptKind.TS); | ||
@@ -17,0 +17,0 @@ const models = (0, dmmf_1.parseDmmf)(options.dmmf); |
{ | ||
"name": "prisma-json-types-generator", | ||
"description": "Changes JsonValues to your custom typescript type", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "dist/generator.js", | ||
@@ -34,3 +34,3 @@ "bin": "./dist/bin.js", | ||
"@types/prettier": "2.7.2", | ||
"prettier": "2.8.1", | ||
"prettier": "2.8.2", | ||
"prisma": "4.8.1", | ||
@@ -37,0 +37,0 @@ "typescript": "4.9.4" |
@@ -13,3 +13,3 @@ import type { GeneratorOptions } from '@prisma/generator-helper'; | ||
nsName, | ||
options.generator.config.output, | ||
options.generator.output?.value, | ||
options.schemaPath | ||
@@ -16,0 +16,0 @@ ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
89616
0.12%59
1.72%