(
cmd: string,
options?: Omit<ExecSyncOptions, 'env'> & { env?: Record<string, string> },
)
| 19 | * Utility for running package commands through npx/bunx |
| 20 | */ |
| 21 | export function execPackage( |
| 22 | cmd: string, |
| 23 | options?: Omit<ExecSyncOptions, 'env'> & { env?: Record<string, string> }, |
| 24 | ): void { |
| 25 | const packageManager = process?.versions?.['bun'] ? 'bunx' : 'npx'; |
| 26 | execSync(`${packageManager} ${cmd}`, options); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Utility for running prisma commands |
no test coverage detected