fix: logo 右半部分从 CODING 改为 CODE
去掉难以正确渲染的 N 和 G 字母,右半部分简化为 CODE(4 字母), 与左半部分 AIR 组合为 AIR CODE。
This commit is contained in:
20
packages/http-recorder/script/build.ts
Normal file
20
packages/http-recorder/script/build.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bun
|
||||
import { $ } from "bun"
|
||||
import { readdir, rm } from "node:fs/promises"
|
||||
|
||||
await rm("dist", { recursive: true, force: true })
|
||||
await $`bunx tsc --emitDeclarationOnly`
|
||||
|
||||
const build = await Bun.build({
|
||||
entrypoints: ["src/index.ts"],
|
||||
outdir: "dist",
|
||||
target: "node",
|
||||
format: "esm",
|
||||
packages: "external",
|
||||
})
|
||||
if (!build.success) throw new AggregateError(build.logs, "Failed to build @opencode-ai/http-recorder")
|
||||
|
||||
const publicFiles = new Set(["index.js", "index.d.ts", "effect.d.ts", "socket.d.ts", "types.d.ts"])
|
||||
await Promise.all(
|
||||
(await readdir("dist")).filter((file) => !publicFiles.has(file)).map((file) => rm(`dist/${file}`, { force: true })),
|
||||
)
|
||||
Reference in New Issue
Block a user