UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

12 lines (11 loc) 601 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = migrate; const nx_json_1 = require("../../generators/utils/nx-json"); const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available"); async function migrate(tree) { const nxJson = (0, nx_json_1.readNxJson)(tree); nxJson.useInferencePlugins = false; (0, nx_json_1.updateNxJson)(tree, nxJson); await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree); }