ci: skip bundled dts in artifact build

This commit is contained in:
Peter Steinberger
2026-05-29 23:56:21 +01:00
parent b1e5c9d7fa
commit 0e6937cc1b
2 changed files with 32 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import path from "node:path";
import { describe, expect, it } from "vitest";
import {
BUILD_ALL_PROFILES,
BUILD_ALL_PROFILE_STEP_ENV,
BUILD_ALL_STEPS,
formatBuildAllDuration,
formatBuildAllTimingSummary,
@@ -195,6 +196,19 @@ describe("resolveBuildAllSteps", () => {
]);
});
it("skips bundled tsdown declarations for CI artifacts", () => {
const tsdown = resolveBuildAllSteps("ciArtifacts").find((step) => step.label === "tsdown");
expect(BUILD_ALL_PROFILE_STEP_ENV.ciArtifacts.tsdown).toEqual({
OPENCLAW_RUN_NODE_SKIP_DTS_BUILD: "1",
});
expect(
resolveBuildAllStep(tsdown!, { env: { OPENCLAW_RUN_NODE_SKIP_DTS_BUILD: "0" } }).options.env,
).toMatchObject({
OPENCLAW_RUN_NODE_SKIP_DTS_BUILD: "1",
});
});
it("uses a minimal built runtime profile for gateway watch regression", () => {
expect(resolveBuildAllSteps("gatewayWatch").map((step) => step.label)).toEqual([
"tsdown",