Skip to content

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Mar 3, 2025

(randomly discovered while was wring tests)

The input we pass it findFile for other utils, is always a filename, however it is behaved as it is a dir, therefor if input is path/to/package.json, util works (by having extra checks)

Using counter for how many times we call statSync in tests, it is reduces from 177 to 167, depending on usage could be more!

@pi0 pi0 merged commit 3d74fc2 into main Mar 3, 2025
3 checks passed
@pi0 pi0 deleted the perf/find-file-is-it branch March 3, 2025 16:49
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.

2 participants