Address dev runner snapshot review feedback

This commit is contained in:
Dotta committed 2026-06-01 22:03:51 +00:00
1 parent 8f25ba6381
commit dc58544832
2 files changed
+24 -6

No files matched your search

+6 -1
View File
@@ -9,7 +9,12 @@ const defaultFileSystem = {
};
export function isMissingPathError(error) {
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
return (
typeof error === "object" &&
error !== null &&
"code" in error &&
(error.code === "ENOENT" || error.code === "ENOTDIR")
);
}
function toRelativePath(repoRoot, absolutePath) {