UNPKG

@berenddeboer/nx-aws-cdk

Version:

Nx self-inferring plugin for AWS CDK stacks

16 lines 623 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateGitIgnore = updateGitIgnore; function updateGitIgnore(tree) { const contents = tree.read(".gitignore", "utf-8") ?? ""; const nuxtEntries = ["# CDK asset staging directory", ".cdk.staging", "cdk.out"]; let newContents = contents; for (const entry of nuxtEntries) { const regex = new RegExp(`^${entry}$`, "m"); if (!regex.test(newContents)) { newContents += `\n${entry}`; } } tree.write(".gitignore", [newContents].join("\n")); } //# sourceMappingURL=update-gitignore.js.map