Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

Utils.ts

7 lines216 Bytes

1// @effect-diagnostics nodeBuiltinImport:off
2import { existsSync } from "node:fs";
3import { join } from "node:path";
4​
5export function isGitRepository(cwd: string): boolean {
6 return existsSync(join(cwd, ".git"));
7}