(pkgDir: string, packageName: string)
| 28 | }; |
| 29 | |
| 30 | const findTarball = (pkgDir: string, packageName: string): string => { |
| 31 | const tarball = readdirSync(pkgDir).find((entry) => entry.endsWith(".tgz")); |
| 32 | if (!tarball) { |
| 33 | throw new Error(`No packed tarball found for ${packageName}`); |
| 34 | } |
| 35 | return join(pkgDir, tarball); |
| 36 | }; |
| 37 | |
| 38 | console.log(`[docs-smoke] packing documented SDK packages`); |
| 39 | await $`bun run scripts/publish-packages.ts --dry-run`.cwd(repoRoot); |