@commitlint/top-level
Version:
Lint your commit messages
14 lines • 339 B
JavaScript
import process from "node:process";
import escalade from "escalade";
export default toplevel;
/**
* Find the next git root
*/
function toplevel(cwd = process.cwd()) {
return escalade(cwd, (directory, files) => {
if (files.includes(".git")) {
return directory;
}
});
}
//# sourceMappingURL=index.js.map