(schema)
| 17 | } |
| 18 | |
| 19 | export 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. |
no test coverage detected