@stryke/prisma-trpc-generator 0.11.2 → 0.11.4

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.
@@ -7931,7 +7931,7 @@ var populateModelFile = /* @__PURE__ */ __name(async (model, sourceFile, config,
7931
7931
  }, "populateModelFile");
7932
7932
  var generateBarrelFile = /* @__PURE__ */ __name((models, indexFile) => {
7933
7933
  models.forEach((model) => indexFile.addExportDeclaration({
7934
- moduleSpecifier: `./${lowerCaseFirst(model.name)}`
7934
+ moduleSpecifier: `./${lowerCaseFirst(model.name)}.schema`
7935
7935
  }));
7936
7936
  }, "generateBarrelFile");
7937
7937
 
@@ -11878,7 +11878,7 @@ ${JSON.stringify(config)}`);
11878
11878
  if (prismaClientProvider?.isCustomOutput) {
11879
11879
  Transformer.setPrismaClientOutputPath(prismaClientProvider.output?.value);
11880
11880
  }
11881
- await constructZodModels(models, joinPaths(zodOutputPath, "models"), config, options);
11881
+ await constructZodModels(models, joinPaths(zodOutputPath, "schemas", "models"), config, options);
11882
11882
  resolveZodModelsComments(models, modelOperations, enumTypes, hiddenModels, hiddenFields);
11883
11883
  await generateZodEnumSchemas(enumTypes.prisma, enumTypes.model);
11884
11884
  const dataSource = options.datasources?.[0];
package/dist/generator.js CHANGED
@@ -7936,7 +7936,7 @@ var populateModelFile = /* @__PURE__ */ __name(async (model, sourceFile, config,
7936
7936
  }, "populateModelFile");
7937
7937
  var generateBarrelFile = /* @__PURE__ */ __name((models, indexFile) => {
7938
7938
  models.forEach((model) => indexFile.addExportDeclaration({
7939
- moduleSpecifier: `./${lowerCaseFirst(model.name)}`
7939
+ moduleSpecifier: `./${lowerCaseFirst(model.name)}.schema`
7940
7940
  }));
7941
7941
  }, "generateBarrelFile");
7942
7942
 
@@ -11883,7 +11883,7 @@ ${JSON.stringify(config)}`);
11883
11883
  if (prismaClientProvider?.isCustomOutput) {
11884
11884
  Transformer.setPrismaClientOutputPath(prismaClientProvider.output?.value);
11885
11885
  }
11886
- await constructZodModels(models, joinPaths(zodOutputPath, "models"), config, options);
11886
+ await constructZodModels(models, joinPaths(zodOutputPath, "schemas", "models"), config, options);
11887
11887
  resolveZodModelsComments(models, modelOperations, enumTypes, hiddenModels, hiddenFields);
11888
11888
  await generateZodEnumSchemas(enumTypes.prisma, enumTypes.model);
11889
11889
  const dataSource = options.datasources?.[0];
package/dist/index.cjs CHANGED
@@ -7927,7 +7927,7 @@ var populateModelFile = /* @__PURE__ */ __name(async (model, sourceFile, config,
7927
7927
  }, "populateModelFile");
7928
7928
  var generateBarrelFile = /* @__PURE__ */ __name((models, indexFile) => {
7929
7929
  models.forEach((model) => indexFile.addExportDeclaration({
7930
- moduleSpecifier: `./${lowerCaseFirst(model.name)}`
7930
+ moduleSpecifier: `./${lowerCaseFirst(model.name)}.schema`
7931
7931
  }));
7932
7932
  }, "generateBarrelFile");
7933
7933
 
@@ -11874,7 +11874,7 @@ ${JSON.stringify(config)}`);
11874
11874
  if (prismaClientProvider?.isCustomOutput) {
11875
11875
  Transformer.setPrismaClientOutputPath(prismaClientProvider.output?.value);
11876
11876
  }
11877
- await constructZodModels(models, joinPaths(zodOutputPath, "models"), config, options);
11877
+ await constructZodModels(models, joinPaths(zodOutputPath, "schemas", "models"), config, options);
11878
11878
  resolveZodModelsComments(models, modelOperations, enumTypes, hiddenModels, hiddenFields);
11879
11879
  await generateZodEnumSchemas(enumTypes.prisma, enumTypes.model);
11880
11880
  const dataSource = options.datasources?.[0];
package/dist/index.js CHANGED
@@ -7932,7 +7932,7 @@ var populateModelFile = /* @__PURE__ */ __name(async (model, sourceFile, config,
7932
7932
  }, "populateModelFile");
7933
7933
  var generateBarrelFile = /* @__PURE__ */ __name((models, indexFile) => {
7934
7934
  models.forEach((model) => indexFile.addExportDeclaration({
7935
- moduleSpecifier: `./${lowerCaseFirst(model.name)}`
7935
+ moduleSpecifier: `./${lowerCaseFirst(model.name)}.schema`
7936
7936
  }));
7937
7937
  }, "generateBarrelFile");
7938
7938
 
@@ -11879,7 +11879,7 @@ ${JSON.stringify(config)}`);
11879
11879
  if (prismaClientProvider?.isCustomOutput) {
11880
11880
  Transformer.setPrismaClientOutputPath(prismaClientProvider.output?.value);
11881
11881
  }
11882
- await constructZodModels(models, joinPaths(zodOutputPath, "models"), config, options);
11882
+ await constructZodModels(models, joinPaths(zodOutputPath, "schemas", "models"), config, options);
11883
11883
  resolveZodModelsComments(models, modelOperations, enumTypes, hiddenModels, hiddenFields);
11884
11884
  await generateZodEnumSchemas(enumTypes.prisma, enumTypes.model);
11885
11885
  const dataSource = options.datasources?.[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/prisma-trpc-generator",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
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": {