mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 21:42:53 +00:00
ci: skip bundled dts in artifact build
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user