Address dev runner snapshot review feedback

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

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) {