@softwareventures/maintain-project
Version:
Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited
13 lines • 426 B
JavaScript
import { hasProperty } from "unknown";
import { statProjectFile } from "./stat-file.js";
export async function projectFileExists(project, path) {
return statProjectFile(project, path).then(() => true, (reason) => {
if (hasProperty(reason, "code") && reason.code === "ENOENT") {
return false;
}
else {
throw reason;
}
});
}
//# sourceMappingURL=file-exists.js.map