UNPKG

nx

Version:

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

15 lines (14 loc) 530 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadNxPluginInIsolation = loadNxPluginInIsolation; const workspace_root_1 = require("../../../utils/workspace-root"); const plugin_pool_1 = require("./plugin-pool"); async function loadNxPluginInIsolation(plugin, root = workspace_root_1.workspaceRoot) { const [loadingPlugin, cleanup] = await (0, plugin_pool_1.loadRemoteNxPlugin)(plugin, root); return [ loadingPlugin, () => { cleanup(); }, ]; }