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);