UNPKG

@softwareventures/maintain-project

Version:

Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited

13 lines 426 B
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