fix: build packages before release tests
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
"README.md"
|
"README.md"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"clean": "shx rm -rf dist",
|
||||||
"build": "tsgo -p tsconfig.build.json",
|
"build": "tsgo -p tsconfig.build.json",
|
||||||
"test": "vitest --run",
|
"test": "vitest --run",
|
||||||
"test:harness": "vitest --run --config vitest.harness.config.ts",
|
"test:harness": "vitest --run --config vitest.harness.config.ts",
|
||||||
|
|||||||
@@ -218,15 +218,15 @@ if (!options.skipCheck) {
|
|||||||
run("npm", ["run", "check"], { cwd: repoRoot });
|
run("npm", ["run", "check"], { cwd: repoRoot });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.skipTest) {
|
|
||||||
run("./test.sh", [], { cwd: repoRoot });
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const pkg of packages) {
|
for (const pkg of packages) {
|
||||||
run("npm", ["run", "clean"], { cwd: pkg.directory });
|
run("npm", ["run", "clean"], { cwd: pkg.directory });
|
||||||
run("npm", ["run", pkg.directory === "packages/ai" ? "build:offline" : "build"], { 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();
|
const tarballs = new Map();
|
||||||
for (const pkg of packages) {
|
for (const pkg of packages) {
|
||||||
const tarball = packPackage(pkg, tarballDirectory);
|
const tarball = packPackage(pkg, tarballDirectory);
|
||||||
|
|||||||
@@ -176,6 +176,10 @@ console.log("Running checks...");
|
|||||||
run("npm run check");
|
run("npm run check");
|
||||||
console.log();
|
console.log();
|
||||||
|
|
||||||
|
console.log("Building packages for tests...");
|
||||||
|
run("npm run build:offline");
|
||||||
|
console.log();
|
||||||
|
|
||||||
console.log("Running tests...");
|
console.log("Running tests...");
|
||||||
run("./test.sh");
|
run("./test.sh");
|
||||||
console.log();
|
console.log();
|
||||||
|
|||||||
Reference in New Issue
Block a user