@stryke/prisma-trpc-generator 0.2.13 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generator.cjs +3 -1
- package/dist/generator.js +3 -1
- package/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -5
package/dist/generator.cjs
CHANGED
|
@@ -22319,7 +22319,9 @@ async function generate(options) {
|
|
|
22319
22319
|
const internals = await getPrismaInternals();
|
|
22320
22320
|
const outputDir = internals.parseEnvValue(options.generator.output);
|
|
22321
22321
|
const results = configSchema.safeParse(options.generator.config);
|
|
22322
|
-
if (!results.success)
|
|
22322
|
+
if (!results.success) {
|
|
22323
|
+
throw new Error("Invalid options passed");
|
|
22324
|
+
}
|
|
22323
22325
|
const config = results.data;
|
|
22324
22326
|
await import_node_fs6.promises.mkdir(outputDir, {
|
|
22325
22327
|
recursive: true
|
package/dist/generator.js
CHANGED
|
@@ -22324,7 +22324,9 @@ async function generate(options) {
|
|
|
22324
22324
|
const internals = await getPrismaInternals();
|
|
22325
22325
|
const outputDir = internals.parseEnvValue(options.generator.output);
|
|
22326
22326
|
const results = configSchema.safeParse(options.generator.config);
|
|
22327
|
-
if (!results.success)
|
|
22327
|
+
if (!results.success) {
|
|
22328
|
+
throw new Error("Invalid options passed");
|
|
22329
|
+
}
|
|
22328
22330
|
const config = results.data;
|
|
22329
22331
|
await fs4.mkdir(outputDir, {
|
|
22330
22332
|
recursive: true
|
package/dist/index.cjs
CHANGED
|
@@ -22315,7 +22315,9 @@ async function generate(options) {
|
|
|
22315
22315
|
const internals = await getPrismaInternals();
|
|
22316
22316
|
const outputDir = internals.parseEnvValue(options.generator.output);
|
|
22317
22317
|
const results = configSchema.safeParse(options.generator.config);
|
|
22318
|
-
if (!results.success)
|
|
22318
|
+
if (!results.success) {
|
|
22319
|
+
throw new Error("Invalid options passed");
|
|
22320
|
+
}
|
|
22319
22321
|
const config = results.data;
|
|
22320
22322
|
await import_node_fs6.promises.mkdir(outputDir, {
|
|
22321
22323
|
recursive: true
|
package/dist/index.js
CHANGED
|
@@ -22320,7 +22320,9 @@ async function generate(options) {
|
|
|
22320
22320
|
const internals = await getPrismaInternals();
|
|
22321
22321
|
const outputDir = internals.parseEnvValue(options.generator.output);
|
|
22322
22322
|
const results = configSchema.safeParse(options.generator.config);
|
|
22323
|
-
if (!results.success)
|
|
22323
|
+
if (!results.success) {
|
|
22324
|
+
throw new Error("Invalid options passed");
|
|
22325
|
+
}
|
|
22324
22326
|
const config = results.data;
|
|
22325
22327
|
await fs4.mkdir(outputDir, {
|
|
22326
22328
|
recursive: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/prisma-trpc-generator",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A fork of the prisma-trpc-generator code to work in ESM with Prisma v6.",
|
|
6
6
|
"repository": {
|
|
@@ -92,10 +92,8 @@
|
|
|
92
92
|
"monorepo"
|
|
93
93
|
],
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@prisma/client": "^6.5.0",
|
|
96
95
|
"@prisma/generator-helper": "^6.5.0",
|
|
97
96
|
"@prisma/internals": "^6.5.0",
|
|
98
|
-
"@prisma/prisma-schema-wasm": "^6.6.0-41.9061db3b0058e3d3731c6fe68a1b77061bed4861",
|
|
99
97
|
"esbuild": "^0.25.0",
|
|
100
98
|
"jiti": "^2.4.2",
|
|
101
99
|
"prettier": "^3.5.2",
|
|
@@ -103,8 +101,6 @@
|
|
|
103
101
|
"ts-morph": "^25.0.1"
|
|
104
102
|
},
|
|
105
103
|
"devDependencies": {
|
|
106
|
-
"@stryke/env": "workspace:*",
|
|
107
|
-
"@stryke/path": "workspace:*",
|
|
108
104
|
"@types/pluralize": "^0.0.33",
|
|
109
105
|
"pluralize": "^8.0.0",
|
|
110
106
|
"tsup": "^8.3.5",
|