feat(http-recorder): prepare independent beta release
This commit is contained in:
parent
f48f24ec4e
commit
81eea42e80
17 changed files with 485 additions and 85 deletions
18
packages/http-recorder/script/version.ts
Normal file
18
packages/http-recorder/script/version.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bun
|
||||
import { $ } from "bun"
|
||||
import { fileURLToPath } from "node:url"
|
||||
|
||||
const packages = await Array.fromAsync(
|
||||
new Bun.Glob("packages/**/package.json").scan({
|
||||
cwd: fileURLToPath(new URL("../../../", import.meta.url)),
|
||||
absolute: true,
|
||||
}),
|
||||
)
|
||||
const ignored = (await Promise.all(packages.map(async (file): Promise<unknown> => Bun.file(file).json())))
|
||||
.map((pkg) =>
|
||||
typeof pkg === "object" && pkg !== null && "name" in pkg && typeof pkg.name === "string" ? pkg.name : undefined,
|
||||
)
|
||||
.filter((name): name is string => name !== undefined && name !== "@opencode-ai/http-recorder")
|
||||
.flatMap((name) => ["--ignore", name])
|
||||
|
||||
await $`bunx changeset version ${ignored}`
|
||||
Loading…
Add table
Add a link
Reference in a new issue