MCPcopy Create free account
hub / github.com/vercel/vercel / isClientGenerated

Function isClientGenerated

packages/python/src/quirks/prisma.ts:129–142  ·  view source on GitHub ↗

Check whether the prisma client has already been generated.

(
  pythonPath: string,
  env: NodeJS.ProcessEnv
)

Source from the content-addressed store, hash-verified

127
128/** Check whether the prisma client has already been generated. */
129async function isClientGenerated(
130 pythonPath: string,
131 env: NodeJS.ProcessEnv
132): Promise<boolean> {
133 try {
134 await execa(pythonPath, ['-c', 'import prisma.client'], {
135 env,
136 stdio: 'pipe',
137 });
138 return true;
139 } catch {
140 return false;
141 }
142}
143
144export const prismaQuirk: Quirk = {
145 dependency: 'prisma',

Callers 1

runFunction · 0.85

Calls 1

execaFunction · 0.85

Tested by

no test coverage detected