wip: plugins
This commit is contained in:
@@ -11,8 +11,17 @@ if (!version) {
|
||||
}
|
||||
process.env["OPENCODE_VERSION"] = version
|
||||
|
||||
for await (const file of new Bun.Glob("**/package.json").scan({
|
||||
absolute: true,
|
||||
})) {
|
||||
const pkg = await Bun.file(file).text()
|
||||
pkg.replaceAll(/"version": "[^"]+"/, `"version": "${version}"`)
|
||||
await Bun.file(file).write(pkg)
|
||||
}
|
||||
|
||||
await import(`../packages/opencode/script/publish.ts`)
|
||||
await import(`../packages/sdk/js/script/publish.ts`)
|
||||
await import(`../packages/plugin/script/publish.ts`)
|
||||
// await import(`../packages/sdk/stainless/generate.ts`)
|
||||
|
||||
if (!snapshot) {
|
||||
|
||||
Reference in New Issue
Block a user