MCPcopy Index your code
hub / github.com/anomalyco/opencode / published

Function published

packages/cli/script/publish.ts:10–12  ·  view source on GitHub ↗
(name: string, version: string)

Source from the content-addressed store, hash-verified

8process.chdir(dir)
9
10async function published(name: string, version: string) {
11 return (await $`npm view ${name}@${version} version`.nothrow()).exitCode === 0
12}
13
14async function publish(dir: string, name: string, version: string) {
15 if (process.platform !== "win32") await $`chmod -R 755 .`.cwd(dir)

Callers 1

publishFunction · 0.70

Calls 1

nothrowMethod · 0.65

Tested by

no test coverage detected