Snapshot release v0.0.0-202508022053

This commit is contained in:
Dax Raad
2025-08-02 16:55:35 -04:00
parent 09c4b71632
commit 1f9e8cc4a5
9 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@opencode/function", "name": "@opencode/function",
"version": "0.0.1", "version": "0.0.0-202508022053",
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"private": true, "private": true,
"type": "module", "type": "module",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"version": "0.0.0", "version": "0.0.0-202508022053",
"name": "opencode", "name": "opencode",
"type": "module", "type": "module",
"private": true, "private": true,
+1
View File
@@ -0,0 +1 @@
dist
+2 -7
View File
@@ -5,19 +5,14 @@ process.chdir(dir)
import { $ } from "bun" import { $ } from "bun"
const version = process.env["OPENCODE_VERSION"]
if (!version) {
throw new Error("OPENCODE_VERSION is required")
}
const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true" const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true"
await $`bun tsc` await $`bun tsc`
await $`bun pm version --allow-same-version --no-git-tag-version ${version}`
if (snapshot) { if (snapshot) {
await $`bun publish --tag snapshot` await $`bun publish --tag snapshot --access public`
await $`git checkout package.json` await $`git checkout package.json`
} }
if (!snapshot) { if (!snapshot) {
await $`bun publish` await $`bun publish --access public`
} }
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/sdk", "name": "@opencode-ai/sdk",
"version": "0.0.0", "version": "0.0.0-202508022053",
"type": "module", "type": "module",
"scripts": { "scripts": {
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
+7 -2
View File
@@ -6,7 +6,12 @@
"module": "preserve", "module": "preserve",
"declaration": true, "declaration": true,
"moduleResolution": "bundler", "moduleResolution": "bundler",
"lib": ["dom.iterable"] "lib": [
"dom",
"dom.iterable"
]
}, },
"include": ["src"] "include": [
"src"
]
} }
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@opencode/web", "name": "@opencode/web",
"type": "module", "type": "module",
"version": "0.0.1", "version": "0.0.0-202508022053",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"dev:remote": "sst shell --stage=dev --target=Web astro dev", "dev:remote": "sst shell --stage=dev --target=Web astro dev",
+3 -3
View File
@@ -14,12 +14,12 @@ process.env["OPENCODE_VERSION"] = version
for await (const file of new Bun.Glob("**/package.json").scan({ for await (const file of new Bun.Glob("**/package.json").scan({
absolute: true, absolute: true,
})) { })) {
const pkg = await Bun.file(file).text() let pkg = await Bun.file(file).text()
pkg.replaceAll(/"version": "[^"]+"/, `"version": "${version}"`) pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${version}"`)
await Bun.file(file).write(pkg) await Bun.file(file).write(pkg)
} }
await import(`../packages/opencode/script/publish.ts`) // await import(`../packages/opencode/script/publish.ts`)
await import(`../packages/sdk/js/script/publish.ts`) await import(`../packages/sdk/js/script/publish.ts`)
await import(`../packages/plugin/script/publish.ts`) await import(`../packages/plugin/script/publish.ts`)
// await import(`../packages/sdk/stainless/generate.ts`) // await import(`../packages/sdk/stainless/generate.ts`)
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "opencode", "name": "opencode",
"displayName": "opencode", "displayName": "opencode",
"description": "opencode for VS Code", "description": "opencode for VS Code",
"version": "0.0.0", "version": "0.0.0-202508022053",
"publisher": "sst-dev", "publisher": "sst-dev",
"repository": { "repository": {
"type": "git", "type": "git",