fix: build packages before release tests

This commit is contained in:
Mario Zechner
2026-07-21 14:51:22 +02:00
parent c23b58a6d8
commit d35237cfda
3 changed files with 9 additions and 4 deletions
+1
View File
@@ -21,6 +21,7 @@
"README.md"
],
"scripts": {
"clean": "shx rm -rf dist",
"build": "tsgo -p tsconfig.build.json",
"test": "vitest --run",
"test:harness": "vitest --run --config vitest.harness.config.ts",
+4 -4
View File
@@ -218,15 +218,15 @@ if (!options.skipCheck) {
run("npm", ["run", "check"], { cwd: repoRoot });
}
if (!options.skipTest) {
run("./test.sh", [], { cwd: repoRoot });
}
for (const pkg of packages) {
run("npm", ["run", "clean"], { cwd: pkg.directory });
run("npm", ["run", pkg.directory === "packages/ai" ? "build:offline" : "build"], { cwd: pkg.directory });
}
if (!options.skipTest) {
run("./test.sh", [], { cwd: repoRoot });
}
const tarballs = new Map();
for (const pkg of packages) {
const tarball = packPackage(pkg, tarballDirectory);
+4
View File
@@ -176,6 +176,10 @@ console.log("Running checks...");
run("npm run check");
console.log();
console.log("Building packages for tests...");
run("npm run build:offline");
console.log();
console.log("Running tests...");
run("./test.sh");
console.log();