@stryke/prisma-trpc-generator 0.9.3 → 0.9.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.
@@ -7636,7 +7636,7 @@ async function generateTRPCExports(sourceFile, config, options, outputDir) {
7636
7636
  if (config.trpcOptions) {
7637
7637
  sourceFile.addStatements(
7638
7638
  /* ts */
7639
- `import trpcOptions from '${relativePath(outputDir, joinPaths(outputDir, typeof config.trpcOptions === "string" ? config.trpcOptions : "./options"))}';`
7639
+ `import trpcOptions from '${typeof config.trpcOptions === "string" ? relativePath(outputDir, joinPaths(outputDir, config.trpcOptions)) : "./options"}';`
7640
7640
  );
7641
7641
  }
7642
7642
  if (config.withNext) {
package/dist/generator.js CHANGED
@@ -7641,7 +7641,7 @@ async function generateTRPCExports(sourceFile, config, options, outputDir) {
7641
7641
  if (config.trpcOptions) {
7642
7642
  sourceFile.addStatements(
7643
7643
  /* ts */
7644
- `import trpcOptions from '${relativePath(outputDir, joinPaths(outputDir, typeof config.trpcOptions === "string" ? config.trpcOptions : "./options"))}';`
7644
+ `import trpcOptions from '${typeof config.trpcOptions === "string" ? relativePath(outputDir, joinPaths(outputDir, config.trpcOptions)) : "./options"}';`
7645
7645
  );
7646
7646
  }
7647
7647
  if (config.withNext) {
package/dist/index.cjs CHANGED
@@ -7632,7 +7632,7 @@ async function generateTRPCExports(sourceFile, config, options, outputDir) {
7632
7632
  if (config.trpcOptions) {
7633
7633
  sourceFile.addStatements(
7634
7634
  /* ts */
7635
- `import trpcOptions from '${relativePath(outputDir, joinPaths(outputDir, typeof config.trpcOptions === "string" ? config.trpcOptions : "./options"))}';`
7635
+ `import trpcOptions from '${typeof config.trpcOptions === "string" ? relativePath(outputDir, joinPaths(outputDir, config.trpcOptions)) : "./options"}';`
7636
7636
  );
7637
7637
  }
7638
7638
  if (config.withNext) {
package/dist/index.js CHANGED
@@ -7637,7 +7637,7 @@ async function generateTRPCExports(sourceFile, config, options, outputDir) {
7637
7637
  if (config.trpcOptions) {
7638
7638
  sourceFile.addStatements(
7639
7639
  /* ts */
7640
- `import trpcOptions from '${relativePath(outputDir, joinPaths(outputDir, typeof config.trpcOptions === "string" ? config.trpcOptions : "./options"))}';`
7640
+ `import trpcOptions from '${typeof config.trpcOptions === "string" ? relativePath(outputDir, joinPaths(outputDir, config.trpcOptions)) : "./options"}';`
7641
7641
  );
7642
7642
  }
7643
7643
  if (config.withNext) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/prisma-trpc-generator",
3
- "version": "0.9.3",
3
+ "version": "0.9.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": {