From a3137cf3a6c304a4527c4a53306de54755528e9f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 20 Oct 2026 16:43:28 +0200 Subject: [PATCH] scripts: the pack gate asserts checkPayloadDepth is exported, and CI runs it cultcache-ts 0.14.1 re-exports checkPayloadDepth from the document entry on purpose, but the closure script still asserted it undefined, so test:pack:ts was red and no workflow ran it. The assertion now expects a function and the TypeScript job of cultmesh-portability.yml runs the gate. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/cultmesh-portability.yml | 5 +++++ scripts/test-typescript-package-closure.mjs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cultmesh-portability.yml b/.github/workflows/cultmesh-portability.yml index b7aaa935..f8a6e5da 100644 --- a/.github/workflows/cultmesh-portability.yml +++ b/.github/workflows/cultmesh-portability.yml @@ -114,6 +114,11 @@ jobs: - name: Verify the CultCache document owner with the TypeScript cache run: npm run test --workspace packages/cultcache-ts + # Packs the four TypeScript packages and installs them into a clean consumer, so a package that builds but does + # not install or load fails here. + - name: Verify the packed TypeScript packages install and load from a clean consumer + run: npm run test:pack:ts + - name: Verify the CultMesh authority rules with the TypeScript verifier run: npm run test --workspace packages/cultnet-ts diff --git a/scripts/test-typescript-package-closure.mjs b/scripts/test-typescript-package-closure.mjs index 5544af06..6b0d7661 100644 --- a/scripts/test-typescript-package-closure.mjs +++ b/scripts/test-typescript-package-closure.mjs @@ -134,7 +134,7 @@ for (const [entryName, entry] of Object.entries(entries)) { } } } -assert.equal(typeof documentEntry.checkPayloadDepth, "undefined"); +assert.equal(typeof documentEntry.checkPayloadDepth, "function"); assert.equal(documentEntry.MAX_PAYLOAD_DEPTH, 256); assert.equal(cache.MAX_PAYLOAD_DEPTH, 256); assert.equal(documentEntry.CultCachePayloadDepthError, cache.CultCachePayloadDepthError);