Compare commits

...

1 Commits

Author SHA1 Message Date
Dax Raad
9241711bce Snapshot release v0.0.0-202508031634 2025-08-03 12:35:57 -04:00
2 changed files with 10 additions and 13 deletions

View File

@@ -10,7 +10,7 @@
},
"packages/function": {
"name": "@opencode/function",
"version": "0.3.120",
"version": "0.3.122",
"dependencies": {
"@octokit/auth-app": "8.0.1",
"@octokit/rest": "22.0.0",
@@ -25,7 +25,7 @@
},
"packages/opencode": {
"name": "opencode",
"version": "0.3.120",
"version": "0.3.122",
"bin": {
"opencode": "./bin/opencode",
},
@@ -78,7 +78,7 @@
},
"packages/plugin": {
"name": "@opencode-ai/plugin",
"version": "0.3.120",
"version": "0.3.122",
"devDependencies": {
"@hey-api/openapi-ts": "0.80.1",
"@opencode-ai/sdk": "workspace:*",
@@ -88,7 +88,7 @@
},
"packages/sdk/js": {
"name": "@opencode-ai/sdk",
"version": "0.3.120",
"version": "0.3.122",
"devDependencies": {
"@hey-api/openapi-ts": "0.80.1",
"@tsconfig/node22": "catalog:",
@@ -97,7 +97,7 @@
},
"packages/web": {
"name": "@opencode/web",
"version": "0.3.120",
"version": "0.3.122",
"dependencies": {
"@astrojs/cloudflare": "^12.5.4",
"@astrojs/markdown-remark": "6.3.1",

View File

@@ -15,12 +15,10 @@ const pkgjsons = await Array.fromAsync(
new Bun.Glob("**/package.json").scan({
absolute: true,
}),
)
).then((arr) => arr.filter((x) => !x.includes("node_modules")))
const tree = await $`git add . && git write-tree`.text().then((x) => x.trim())
for await (const file of new Bun.Glob("**/package.json").scan({
absolute: true,
})) {
for (const file of pkgjsons) {
let pkg = await Bun.file(file).text()
pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${version}"`)
await Bun.file(file).write(pkg)
@@ -43,9 +41,8 @@ if (snapshot) {
await $`git push origin v${version} --no-verify`
await $`git checkout dev`
await $`git branch -D snapshot-${version}`
for await (const file of new Bun.Glob("**/package.json").scan({
absolute: true,
})) {
$`await git checkout ${tree} ${file}`
for (const file of pkgjsons) {
console.log("resetting", file)
await $`await git checkout ${tree} ${file}`
}
}