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

Function collectReleaseAssetPaths

apps/cli/src/release.ts:150–158  ·  view source on GitHub ↗
(
  wrapperArchivePath: string,
)

Source from the content-addressed store, hash-verified

148};
149
150const collectReleaseAssetPaths = async (
151 wrapperArchivePath: string,
152): Promise<ReadonlyArray<string>> => {
153 const assetNames = (await readdir(distDir))
154 .filter((entry) => /^executor-.*\.(?:tar\.gz|zip)$/.test(entry))
155 .sort();
156
157 return [wrapperArchivePath, ...assetNames.map((entry) => join(distDir, entry))];
158};
159
160const githubReleaseExists = async (tag: string, repository: string): Promise<boolean> => {
161 const proc = Bun.spawn(["gh", "release", "view", tag, "--repo", repository], {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected