"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = addClaudeWorktreesToGitIgnore;
const ignore_1 = require("../../utils/ignore");
function addClaudeWorktreesToGitIgnore(tree) {
    if (!tree.exists('.gitignore')) {
        return;
    }
    // Lerna users that don't use nx.json may not expect .claude directory changes
    if (tree.exists('lerna.json') && !tree.exists('nx.json')) {
        return;
    }
    (0, ignore_1.addEntryToGitIgnore)(tree, '.gitignore', '.claude/worktrees');
}
