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

Function readPackageJson

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

Source from the content-addressed store, hash-verified

56};
57
58const readPackageJson = async (pkgDir: string): Promise<PackageJson> => {
59 const raw = await readFile(join(pkgDir, "package.json"), "utf8");
60 return JSON.parse(raw) as PackageJson;
61};
62
63const findTarball = (pkgDir: string): string | null => {
64 const tgz = readdirSync(pkgDir).find((entry) => entry.endsWith(".tgz"));

Callers 2

smokeTestPackageFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected