UNPKG

@nxworker/workspace

Version:

Nx plugin providing generators for managing workspace files, including the move-file generator for safely moving files between projects while updating all imports

22 lines (21 loc) 619 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "finalizeMove", { enumerable: true, get: function() { return finalizeMove; } }); const _devkit = require("@nx/devkit"); const _treecache = require("../tree-cache"); async function finalizeMove(tree, normalizedSource, options) { tree.delete(normalizedSource); // Invalidate tree read cache _treecache.treeReadCache.invalidateFile(normalizedSource); if (!options.skipFormat) { await (0, _devkit.formatFiles)(tree); } } //# sourceMappingURL=finalize-move.js.map