MCPcopy
hub / github.com/anomalyco/opencode / published

Function published

packages/plugin/script/publish.ts:9–11  ·  view source on GitHub ↗
(name: string, version: string)

Source from the content-addressed store, hash-verified

7process.chdir(dir)
8
9async function published(name: string, version: string) {
10 return (await $`npm view ${name}@${version} version`.nothrow()).exitCode === 0
11}
12
13await $`bun tsc`
14const originalText = await Bun.file("package.json").text()

Callers 1

publish.tsFile · 0.70

Calls 1

nothrowMethod · 0.65

Tested by

no test coverage detected