UNPKG

@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

24 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = update; /* eslint-disable @typescript-eslint/no-unused-vars */ const devkit_1 = require("@nx/devkit"); const generator_1 = require("../../generators/nxjson-config/generator"); const semver_1 = require("semver"); async function update(host) { if ((0, semver_1.major)(devkit_1.NX_VERSION) < 17) { devkit_1.output.warn({ title: 'Skipping migration of nx-dotnet config.', bodyLines: [ 'Nx 17 added standardized support for plugins to supply configuration options within nx.json. This migration would have moved your nx-dotnet config to nx.json, but you are using an older version of Nx.', 'After updating Nx, you can apply this migration by either running:', '- nx g @nx-dotnet/core:nxjson-config', '- nx migrate @nx-dotnet/core@1.24.0 --from 1.23.0', ], }); } else { await (0, generator_1.default)(host); } } //# sourceMappingURL=update-1.24.0.js.map