UNPKG

803 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.removeOldTaskRunnerOptions = void 0;
4const devkit_1 = require("@nrwl/devkit");
5function removeOldTaskRunnerOptions(host) {
6 var _a, _b;
7 const workspaceConfig = (0, devkit_1.readWorkspaceConfiguration)(host);
8 const options = (_b = (_a = workspaceConfig.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.updateWorkspaceConfiguration)(host, workspaceConfig);
13 }
14}
15exports.removeOldTaskRunnerOptions = removeOldTaskRunnerOptions;
16exports.default = removeOldTaskRunnerOptions;
17//# sourceMappingURL=remove-old-task-runner-options.js.map
\No newline at end of file