Skip to content

build: Module boundaries were preserved in package output - #7

Merged
cmath10 merged 1 commit into
mainfrom
codex/preserve-public-api-modules
Sep 26, 2026
Merged

cmath10 merged 1 commit into
mainfrom
codex/preserve-public-api-modules

Conversation

@cmath10

@cmath10 cmath10 commented Sep 26, 2026

Copy link
Copy Markdown
Member

The build emitted implementations such as assertions-HASH.mjs behind public entrypoint facades. Preserve source module boundaries so assertions.mjs and the other named modules contain their implementations and serve as shared dependencies in both ESM and CJS output.

preserveModulesRoot keeps paths relative to src. Internal modules are emitted as separate, stably named files; package exports remain unchanged.

The packed consumer check now rejects hashed runtime chunks, verifies direct imports through the public assertions and predicates modules, and checks that every assertion has the same identity through the root and assertions entrypoints.

Validation: yarn lint, yarn typecheck, yarn test (235 tests, 100% coverage), yarn build, and packed consumer checks for ESM/CJS, strict NodeNext/Bundler types, and tree shaking. Packed consumer checks ran outside the sandbox because child npm processes were blocked with EPERM.

@codecov

codecov Bot commented Sep 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3e47539) to head (2c32c20).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #7   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines          851       851           
  Branches       191       191           
=========================================
  Hits           851       851           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cmath10
cmath10 merged commit b87f074 into main Sep 26, 2026
7 checks passed
@cmath10
cmath10 deleted the codex/preserve-public-api-modules branch September 26, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant