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

Utils.ts

7 lines234 Bytes

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