"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDotGitignore = getDotGitignore;
const path_1 = __importDefault(require("path"));
const fs_1 = __importDefault(require("fs"));
function getDotGitignore({ installDir, }) {
    const gitignorePath = path_1.default.join(installDir, '.gitignore');
    const gitignoreExists = fs_1.default.existsSync(gitignorePath);
    if (gitignoreExists) {
        return gitignorePath;
    }
    return undefined;
}
