Skip to content

feat!: replace tinyglobby with built-in fs.glob - #411

Open
hyperz111 wants to merge 2 commits into
keithamus:mainfrom
hyperz111:fs-glob
Open

feat!: replace tinyglobby with built-in fs.glob#411
hyperz111 wants to merge 2 commits into
keithamus:mainfrom
hyperz111:fs-glob

Conversation

@hyperz111

Copy link
Copy Markdown
Contributor

This PR will replace tinyglobby with built-in fs.glob, but we need to only support Node.js 22.17 or higher.

Comment thread cli.js
Comment on lines +74 to +77
const files =
process.platform === 'win32'
? results.map((result) => result.replaceAll('\\', '/'))
: results

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look right. This should use path.normalize or so, right?

@hyperz111 hyperz111 Apr 28, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good, because glob will return array of paths using OS-spesific slash and path.normalize doesn't work. I replace slash for keep consistent with snapshots.

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.

3 participants