import type { GeneratorManifest } from '@prisma/generator-helper' ; export function getEngineVersionForGenerator ( manifest ? , defaultVersion ? ) { let neededVersion = manifest ?. requiresEngineVersion ; neededVersion = neededVersion ?? defaultVersion ; return neededVersion ?? 'latest' ; }