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

Function packageAlreadyPublished

scripts/publish-packages.ts:83–88  ·  view source on GitHub ↗
(name: string, version: string)

Source from the content-addressed store, hash-verified

81};
82
83const packageAlreadyPublished = async (name: string, version: string): Promise<boolean> => {
84 const proc = Bun.spawn(["npm", "view", `${name}@${version}`, "version"], {
85 stdio: ["ignore", "ignore", "ignore"],
86 });
87 return (await proc.exited) === 0;
88};
89
90type DependencyBlock = Record<string, string>;
91type PeerDependenciesMeta = Record<string, { optional?: boolean }>;

Callers 1

publishPackageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected