MCPcopy Create free account
hub / github.com/anomalyco/opencode / prepareReleaseFiles

Function prepareReleaseFiles

script/publish.ts:19–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17).then((arr) => arr.filter((x) => !x.includes("node_modules") && !x.includes("dist")))
18
19async function prepareReleaseFiles() {
20 for (const file of pkgjsons) {
21 let pkg = await Bun.file(file).text()
22 pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${Script.version}"`)
23 console.log("updated:", file)
24 await Bun.file(file).write(pkg)
25 }
26
27 await $`bun install`
28 await $`./packages/sdk/js/script/build.ts`
29}
30
31if (Script.release && !Script.preview) {
32 await $`git fetch origin --tags`

Callers 1

publish.tsFile · 0.85

Calls 4

fileMethod · 0.80
writeMethod · 0.80
textMethod · 0.65
logMethod · 0.45

Tested by

no test coverage detected