@nx-plugins/stryker
Version:
The Nx Plugin for Stryker that contains executors and generators for allowing your workspace to use powerful Stryker mutation testing capabilities.
16 lines • 601 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addGitIgnoreEntry = void 0;
const devkit_1 = require("@nrwl/devkit");
function addGitIgnoreEntry(host, options) {
if (host.exists('.gitignore')) {
let content = host.read('.gitignore', 'utf-8');
content = `${content}\n${options.tempDirName}\n`;
host.write('.gitignore', content);
}
else {
devkit_1.logger.warn(`Couldn't find .gitignore file to update`);
}
}
exports.addGitIgnoreEntry = addGitIgnoreEntry;
//# sourceMappingURL=add-git-ignore-entry.js.map