MCPcopy
hub / github.com/redwoodjs/graphql / generatePrismaCommand

Function generatePrismaCommand

packages/cli/src/lib/generatePrismaClient.js:19–28  ·  view source on GitHub ↗
(schema)

Source from the content-addressed store, hash-verified

17}
18
19export const generatePrismaCommand = (schema) => {
20 if (skipTask(schema)) {
21 return {}
22 }
23
24 return {
25 cmd: `node "${require.resolve('prisma/build/index.js')}"`,
26 args: ['generate', schema && `--schema="${schema}"`],
27 }
28}
29
30/**
31 * Conditionally generate the prisma client, skip if it already exists.

Callers 2

handlerFunction · 0.90
generatePrismaClientFunction · 0.85

Calls 1

skipTaskFunction · 0.85

Tested by

no test coverage detected