( pkgDir: string, publishable: ReadonlySet<string>, publishableVersions: ReadonlyMap<string, string>, )
| 389 | * the workflow tears down right after pkg-pr-new finishes. |
| 390 | */ |
| 391 | const prepareOnePackage = async ( |
| 392 | pkgDir: string, |
| 393 | publishable: ReadonlySet<string>, |
| 394 | publishableVersions: ReadonlyMap<string, string>, |
| 395 | ) => { |
| 396 | const { name, version } = await readPackageMeta(pkgDir); |
| 397 | if (!existsSync(join(pkgDir, "dist"))) { |
| 398 | throw new Error(`Missing dist/ in ${pkgDir}. Did you run 'bun run build:packages'?`); |
| 399 | } |
| 400 | console.log(`[prepare] ${name}@${version}`); |
| 401 | await applyWorkspaceVersions(pkgDir, publishable, publishableVersions); |
| 402 | await applyPublishConfig(pkgDir); |
| 403 | }; |
| 404 | |
| 405 | const main = async () => { |
| 406 | const { dryRun, prepareOnly } = parseArgs(process.argv.slice(2)); |
no test coverage detected