MCPcopy
hub / github.com/prisma/prisma / replacePackageName

Function replacePackageName

packages/client-generator-js/src/generateClient.ts:596–598  ·  view source on GitHub ↗
(directoryPath: string, replacement: string)

Source from the content-addressed store, hash-verified

594}
595
596function replacePackageName(directoryPath: string, replacement: string): string {
597 return directoryPath.replace(clientPkg.name, replacement)
598}
599
600function findOutputPathDeclaration(datamodel: string): OutputDeclaration | null {
601 const lines = datamodel.split(/\r?\n/)

Callers 1

verifyOutputDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected