mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-20 09:14:22 +01:00
ci: ignore
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"dev": "bun run ./src/index.ts"
|
"dev": "bun run --conditions=development ./src/index.ts"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"opencode": "./bin/opencode"
|
"opencode": "./bin/opencode"
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ export const BashTool = Tool.define("bash", {
|
|||||||
maxBuffer: MAX_OUTPUT_LENGTH,
|
maxBuffer: MAX_OUTPUT_LENGTH,
|
||||||
signal: ctx.abort,
|
signal: ctx.abort,
|
||||||
timeout: timeout,
|
timeout: timeout,
|
||||||
|
stdin: "pipe",
|
||||||
stdout: "pipe",
|
stdout: "pipe",
|
||||||
stderr: "pipe",
|
stderr: "pipe",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ const dir = new URL("..", import.meta.url).pathname
|
|||||||
process.chdir(dir)
|
process.chdir(dir)
|
||||||
|
|
||||||
import { $ } from "bun"
|
import { $ } from "bun"
|
||||||
import fs from "fs/promises"
|
|
||||||
import path from "path"
|
import path from "path"
|
||||||
|
|
||||||
console.log("=== Generating JS SDK ===")
|
console.log("=== Generating JS SDK ===")
|
||||||
@@ -12,8 +11,7 @@ console.log()
|
|||||||
|
|
||||||
import { createClient } from "@hey-api/openapi-ts"
|
import { createClient } from "@hey-api/openapi-ts"
|
||||||
|
|
||||||
await fs.rm(path.join(dir, "src/gen"), { recursive: true, force: true })
|
await $`bun dev generate > openapi.json`.cwd(path.resolve(dir, "../../opencode"))
|
||||||
await $`bun run ./src/index.ts generate > openapi.json`.cwd(path.resolve(dir, "../../opencode"))
|
|
||||||
|
|
||||||
await createClient({
|
await createClient({
|
||||||
input: "./openapi.json",
|
input: "./openapi.json",
|
||||||
@@ -37,6 +35,3 @@ await createClient({
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
await $`bun prettier --write src/gen`
|
await $`bun prettier --write src/gen`
|
||||||
|
|
||||||
await $`rm -rf dist`
|
|
||||||
await $`bun tsc`
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ process.chdir(dir)
|
|||||||
import { $ } from "bun"
|
import { $ } from "bun"
|
||||||
|
|
||||||
await import("./generate")
|
await import("./generate")
|
||||||
|
await $`rm -rf dist`
|
||||||
|
await $`bun tsc`
|
||||||
|
|
||||||
const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true"
|
const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user