blob: 77f0e5ca9ff0dc013b7964ade84ea9ffaf945805 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import path from "path";
import { existsSync } from "fs-extra";
const HINTS = ["package.json", "turbo.json", ".git"];
export default function looksLikeRepo({
directory,
}: {
directory: string;
}): boolean {
return HINTS.some((hint) => existsSync(path.join(directory, hint)));
}
|