feat(agent): prepare SQLite storage package for publishing

This commit is contained in:
Mario Zechner
2026-07-21 14:13:14 +02:00
parent 8495f9d0d6
commit 109c4125d2
10 changed files with 94 additions and 81 deletions
+6 -7
View File
@@ -18,9 +18,10 @@
* 9. Push main and the tag to trigger CI publishing
*/
import { execSync } from "child_process";
import { readFileSync, writeFileSync, readdirSync, existsSync } from "fs";
import { join } from "path";
import { execSync } from "node:child_process";
import { existsSync, readFileSync, writeFileSync } from "node:fs";
import { join } from "node:path";
import { findPackageDirectories } from "./package-workspaces.mjs";
const RELEASE_TARGET = process.argv[2];
const BUMP_TYPES = new Set(["major", "minor", "patch"]);
@@ -97,10 +98,8 @@ function bumpOrSetVersion(target) {
}
function getChangelogs() {
const packagesDir = "packages";
const packages = readdirSync(packagesDir);
return packages
.map((pkg) => join(packagesDir, pkg, "CHANGELOG.md"))
return findPackageDirectories()
.map((directory) => join(directory, "CHANGELOG.md"))
.filter((path) => existsSync(path));
}