Skip to content

fix(lazy): keep a folder whose only entry is a same-named folder nested - #582

Merged
Shinrai merged 1 commit into
nextfrom
fix/lazy-same-named-folder-flatten
Oct 8, 2026
Merged

Shinrai merged 1 commit into
nextfrom
fix/lazy-same-named-folder-flatten

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(lazy): keep a folder whose only entry is a same-named folder nested (e36e105)

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

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
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure labels Oct 8, 2026
@Shinrai

Shinrai commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Resolves #581 — closed when this ships to the default branch.

@Shinrai
Shinrai merged commit 01a63ab into next Oct 8, 2026
31 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/lazy-same-named-folder-flatten branch October 8, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! fix → next v4 flow: fix contributor PR targeting the next integration branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant