locate-path
Advanced tools
Comparing version 7.1.1 to 7.2.0
@@ -64,4 +64,10 @@ import process from 'node:process'; | ||
try { | ||
const stat = statFunction(path.resolve(cwd, path_)); | ||
const stat = statFunction(path.resolve(cwd, path_), { | ||
throwIfNoEntry: false, | ||
}); | ||
if (!stat) { | ||
continue; | ||
} | ||
if (matchType(type, stat)) { | ||
@@ -68,0 +74,0 @@ return path_; |
{ | ||
"name": "locate-path", | ||
"version": "7.1.1", | ||
"version": "7.2.0", | ||
"description": "Get the first path that exists on disk of multiple paths", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
7247
135