"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const child_process_1 = require("child_process");
const getGitRootDir = () => {
    const devNull = process.platform === 'win32' ? ' nul' : '/dev/null';
    const dir = (0, child_process_1.execSync)('git rev-parse --show-toplevel 2>' + devNull)
        .toString()
        .trim();
    return dir;
};
exports.default = getGitRootDir;
//# sourceMappingURL=getGitRootDir.js.map