Compare commits

...

2 Commits

Author SHA1 Message Date
Dax Raad
f3be3ef542 Snapshot release v0.0.0-202508031649 2025-08-03 12:50:59 -04:00
Dax Raad
05fee67456 ci: ignore 2025-08-03 12:37:59 -04:00

View File

@@ -15,12 +15,10 @@ const pkgjsons = await Array.fromAsync(
new Bun.Glob("**/package.json").scan({
absolute: true,
}),
)
).then((arr) => arr.filter((x) => !x.includes("node_modules") && !x.includes("dist")))
const tree = await $`git add . && git write-tree`.text().then((x) => x.trim())
for await (const file of new Bun.Glob("**/package.json").scan({
absolute: true,
})) {
for (const file of pkgjsons) {
let pkg = await Bun.file(file).text()
pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${version}"`)
await Bun.file(file).write(pkg)
@@ -43,9 +41,7 @@ if (snapshot) {
await $`git push origin v${version} --no-verify`
await $`git checkout dev`
await $`git branch -D snapshot-${version}`
for await (const file of new Bun.Glob("**/package.json").scan({
absolute: true,
})) {
$`await git checkout ${tree} ${file}`
for (const file of pkgjsons) {
await $`git checkout ${tree} ${file}`
}
}