From 9241711bce659f258cfe10bb5f175d503cc1b114 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sun, 3 Aug 2025 12:35:57 -0400 Subject: [PATCH] Snapshot release v0.0.0-202508031634 --- bun.lock | 10 +++++----- script/publish.ts | 13 +++++-------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/bun.lock b/bun.lock index d75fa54068..76c6cf78e3 100644 --- a/bun.lock +++ b/bun.lock @@ -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", diff --git a/script/publish.ts b/script/publish.ts index 33813a984f..fc395eed8d 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -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}` } }