MCPcopy
hub / github.com/prisma/prisma / determineClientOutputPath

Function determineClientOutputPath

packages/cli/src/utils/client-output-path.ts:12–19  ·  view source on GitHub ↗
(schemaDir: string)

Source from the content-addressed store, hash-verified

10 * @returns client output path relative to the schema directory
11 */
12export 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.

Callers 2

parseMethod · 0.90

Calls 1

getSourceDirFunction · 0.85

Tested by

no test coverage detected