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

Function findTarball

scripts/smoke-test-packed.ts:63–66  ·  view source on GitHub ↗
(pkgDir: string)

Source from the content-addressed store, hash-verified

61};
62
63const findTarball = (pkgDir: string): string | null => {
64 const tgz = readdirSync(pkgDir).find((entry) => entry.endsWith(".tgz"));
65 return tgz ? join(pkgDir, tgz) : null;
66};
67
68const subpathsToTest = (pkg: PackageJson): readonly string[] => Object.keys(pkg.exports ?? {});
69

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected