MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / findTarball

Function findTarball

scripts/smoke-docs-install.ts:30–36  ·  view source on GitHub ↗
(pkgDir: string, packageName: string)

Source from the content-addressed store, hash-verified

28};
29
30const 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
38console.log(`[docs-smoke] packing documented SDK packages`);
39await $`bun run scripts/publish-packages.ts --dry-run`.cwd(repoRoot);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected