fix: copy .mjs files to dist in build script#19
Merged
Conversation
Hermes bridge (bridge.mjs) and core bridge were missing from dist because tsc skips .mjs files entirely. Published packages had a broken Hermes integration as a result. Uses parameter expansion to strip the src/ prefix and place files at the correct dist/ path (not dist/src/).
htafolla
added a commit
that referenced
this pull request
Apr 2, 2026
- Add validators for terms #12, #19, #16, #3, #13 (early returns, small functions, DRY, over-engineering, error boundaries) - Wire processor-pipeline MCP to use CodexLoader for richer validation - Fix orchestrator config loading and conflict resolution wiring - Total 16 active validators now (was 11)
htafolla
added a commit
that referenced
this pull request
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
tscskips.mjsfiles entirely. The build script only rantsc && cp public/*, sosrc/core/bridge.mjsandsrc/integrations/hermes-agent/bridge.mjswere never copied todist/. Published packages shipped a broken Hermes bridge (MODULE_NOT_FOUNDatdist/integrations/hermes-agent/bridge.mjs).Fix
Added a find+copy step to the build script that copies all non-test
.mjsfiles fromsrc/todist/(stripping thesrc/prefix via${f#src/}).Verification
dist/core/bridge.mjsanddist/integrations/hermes-agent/bridge.mjsnow present{"status":"ok","version":"1.15.26"}