1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.removeOldTaskRunnerOptions = void 0;
|
4 | const devkit_1 = require("@nrwl/devkit");
|
5 | function removeOldTaskRunnerOptions(host) {
|
6 | var _a, _b;
|
7 | const nxJson = (0, devkit_1.readNxJson)(host);
|
8 | const options = (_b = (_a = nxJson.tasksRunnerOptions) === null || _a === void 0 ? void 0 : _a['default']) === null || _b === void 0 ? void 0 : _b.options;
|
9 | if (options) {
|
10 | delete options.scan;
|
11 | delete options.analytics;
|
12 | (0, devkit_1.updateNxJson)(host, nxJson);
|
13 | }
|
14 | }
|
15 | exports.removeOldTaskRunnerOptions = removeOldTaskRunnerOptions;
|
16 | exports.default = removeOldTaskRunnerOptions;
|
17 |
|
\ | No newline at end of file |