fix(http-recorder): isolate changeset versioning
This commit is contained in:
parent
4519a1da32
commit
f63469f04e
2 changed files with 19 additions and 1 deletions
|
|
@ -14,7 +14,7 @@
|
|||
"dev:storybook": "bun --cwd packages/storybook storybook",
|
||||
"lint": "oxlint",
|
||||
"changeset": "changeset",
|
||||
"version:http-recorder": "changeset version",
|
||||
"version:http-recorder": "bun ./packages/http-recorder/script/version.ts",
|
||||
"release:http-recorder": "bun ./packages/http-recorder/script/publish.ts",
|
||||
"typecheck": "bun turbo typecheck",
|
||||
"upgrade-opentui": "bun run script/upgrade-opentui.ts",
|
||||
|
|
|
|||
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) => (await Bun.file(file).json()) as { readonly name?: string }))
|
||||
)
|
||||
.map((pkg) => pkg.name)
|
||||
.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