@nx-dotnet/core
Version:
- Have an existing nx workspace. For creating this, see [nrwl's documentation](https://nx.dev/latest/angular/getting-started/nx-setup). - .NET SDK is installed, and `dotnet` is available on the path. For help on this, see [Microsoft's documentation](https
17 lines • 698 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = update;
const devkit_1 = require("@nx/devkit");
const utils_1 = require("@nx-dotnet/utils");
const models_1 = require("../../models");
async function update(host) {
var _a;
const projects = await (0, utils_1.getNxDotnetProjects)(host);
for (const [name, project] of projects) {
project.targets ?? (project.targets = {});
(_a = project.targets).lint ?? (_a.lint = (0, models_1.GetLintExecutorConfiguration)());
(0, devkit_1.updateProjectConfiguration)(host, name, project);
}
await (0, devkit_1.formatFiles)(host);
}
//# sourceMappingURL=add-lint-target.js.map