(schemaDir: string)
| 10 | * @returns client output path relative to the schema directory |
| 11 | */ |
| 12 | export function determineClientOutputPath(schemaDir: string): string { |
| 13 | const sourceDir = getSourceDir() |
| 14 | const outputPath = path.join(sourceDir, 'generated', 'prisma') |
| 15 | const relativeOutputPath = path.relative(schemaDir, outputPath) |
| 16 | |
| 17 | // Normalize path separators to forward slashes |
| 18 | return relativeOutputPath.replaceAll(path.sep, '/') |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Determines the absolute path to the source directory. |
no test coverage detected