MCPcopy
hub / github.com/prisma/prisma / checkSeedScript

Function checkSeedScript

packages/cli/src/bootstrap/project-state.ts:24–27  ·  view source on GitHub ↗
(baseDir: string)

Source from the content-addressed store, hash-verified

22}
23
24function checkSeedScript(baseDir: string): boolean {
25 if (checkSeedInPackageJson(baseDir)) return true
26 return checkSeedInPrismaConfig(baseDir)
27}
28
29function checkSeedInPackageJson(baseDir: string): boolean {
30 const packageJsonPath = path.join(baseDir, 'package.json')

Callers 1

detectProjectStateFunction · 0.85

Calls 2

checkSeedInPackageJsonFunction · 0.85
checkSeedInPrismaConfigFunction · 0.85

Tested by

no test coverage detected