import { execSync } from 'child_process' export async function packageExistsOnNpm(packageName: string, version: string) { try { execSync(`npm view ${packageName}@${version}`) return true } catch (err) { return false } }