Repository navigation
fix(lazy): keep a folder whose only entry is a same-named folder nested - #582
Merged
Merged
Conversation
Only a file named after its folder flattens into it (Rule 1). The lazy subdirectory materializer also unwrapped a folder whose only member was a same-named subfolder, so `x/foo/foo/get.mjs` composed `x.foo.foo.get` in eager mode and `x.foo.get` in lazy mode. The single-member unwrap now carries the same "is there a file by that name" guard the multi-member hoist above it already had, and both modes compose `x.foo.foo.get`. The smart-flattening test for the `pipe/pipe/` fixture ran only in lazy mode and asserted the flattened `api.pipe.doWork()`. It now asserts the nested `api.pipe.pipe.doWork()` in both modes. Fixes #581
Contributor
|
Resolves #581 — closed when this ships to the default branch. |
Shinrai
approved these changes
Oct 8, 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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
📦 Dependencies
No dependency updates
🔧 Other Changes
No other changes
👥 Contributors