Skip to content

refactor: replace walk with recursive fs.readdir#956

Open
slagiewka wants to merge 2 commits intotwigjs:masterfrom
slagiewka:drop_walk
Open

refactor: replace walk with recursive fs.readdir#956
slagiewka wants to merge 2 commits intotwigjs:masterfrom
slagiewka:drop_walk

Conversation

@slagiewka
Copy link
Copy Markdown

@slagiewka slagiewka commented Mar 28, 2026

This branch has a commit from #955. It's required to 1) make it work 2) prove the change retains original functionality.


readdir with recursive is possible since node v20.1.0/v18.17.0.
This project already requires node v22, therefore this option can be
safely used.

The original project suggests to use @root/walk which also uses
readdir but with manual recursion. The new lib was written ~3 years
before stdlib had it.

minimatch v9 uses only the named export, no defaults.

Adds a test suite to verify the compile module works.
`readdir` with `recursive` is possible since node v20.1.0/v18.17.0.
This project already requires node v22, therefore this option can be
safely used.

The original project suggests to use `@root/walk` which also uses
`readdir` but with manual recursion. The new lib was written ~3 years
before stdlib had it.
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