fix: Windows CLI module error after WSL setup (closes #10)#69
Open
advancedresearcharray wants to merge 1 commit into
Open
fix: Windows CLI module error after WSL setup (closes #10)#69advancedresearcharray wants to merge 1 commit into
advancedresearcharray wants to merge 1 commit into
Conversation
f0dd1ad to
5b94c62
Compare
This was referenced Jun 6, 2026
be033f9 to
3d7983d
Compare
…hJaitly#10) Bundle all npm dependencies into dist/cli.js so node .mex/dist/cli.js works from native Windows terminals after WSL setup, without relying on .mex/node_modules symlinks. Add setup.ps1 for native Windows rebuilds, WSL warnings in setup.sh, and regression tests for the bundled CLI.
3d7983d to
ce3005b
Compare
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.
Summary
dist/cli.jswas not bundled and imported npm packages from.mex/node_modules. Runningsetup.shin WSL creates Linux symlinks that break when the same tree is used from native Windows Node.dist/cli.jsvia tsup (noExternal), with a small esbuild shim for optionalreact-devtools-coreand ESMcreateRequirefor Commander.setup.ps1for native PowerShell setup/rebuild, WSL/Windows warnings insetup.sh, and a README Windows section.test/cli-bundle.test.tsverifies the bundle has no npm imports and thatnode .mex/dist/cli.jsruns withoutnode_modules.Closes #10
Test plan
npm run typechecknpm test(178 tests, including 3 new bundle tests)npm run build.mex/disttree withoutnode_modules—check --quietsucceeds