fix(build): stamp runtime postbuild artifacts

This commit is contained in:
Peter Steinberger
2026-04-28 07:56:00 +01:00
parent 3256cf4fc7
commit acea3f2465
28 changed files with 410 additions and 96 deletions

View File

@@ -134,6 +134,7 @@ describe("resolveBuildAllSteps", () => {
"check-cli-bootstrap-imports",
"runtime-postbuild",
"build-stamp",
"runtime-postbuild-stamp",
"build:plugin-sdk:dts",
"write-plugin-sdk-entry-dts",
"check-plugin-sdk-exports",
@@ -152,9 +153,20 @@ describe("resolveBuildAllSteps", () => {
"check-cli-bootstrap-imports",
"runtime-postbuild",
"build-stamp",
"runtime-postbuild-stamp",
]);
});
it("writes the runtime postbuild stamp after the build stamp", () => {
expect(resolveBuildAllSteps("full").map((step) => step.label)).toEqual(
expect.arrayContaining(["runtime-postbuild", "build-stamp", "runtime-postbuild-stamp"]),
);
const labels = resolveBuildAllSteps("full").map((step) => step.label);
expect(labels.indexOf("runtime-postbuild-stamp")).toBeGreaterThan(
labels.indexOf("build-stamp"),
);
});
it("does not cache plugin-sdk entry shims over compiled JS", () => {
const step = BUILD_ALL_STEPS.find((entry) => entry.label === "write-plugin-sdk-entry-dts");
expect(step).toBeTruthy();