@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.
- package/dist/generator.cjs +1 -1
- package/dist/generator.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/generator.cjs
CHANGED
|
@@ -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 '${
|
|
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 '${
|
|
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 '${
|
|
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 '${
|
|
7640
|
+
`import trpcOptions from '${typeof config.trpcOptions === "string" ? relativePath(outputDir, joinPaths(outputDir, config.trpcOptions)) : "./options"}';`
|
|
7641
7641
|
);
|
|
7642
7642
|
}
|
|
7643
7643
|
if (config.withNext) {
|