UNPKG

nx

Version:

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

21 lines (20 loc) 832 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleGlob = handleGlob; exports.handleMultiGlob = handleMultiGlob; const workspace_root_1 = require("../../utils/workspace-root"); const workspace_context_1 = require("../../utils/workspace-context"); async function handleGlob(globs, exclude) { const files = await (0, workspace_context_1.globWithWorkspaceContext)(workspace_root_1.workspaceRoot, globs, exclude); return { response: JSON.stringify(files), description: 'handleGlob', }; } async function handleMultiGlob(globs, exclude) { const files = await (0, workspace_context_1.multiGlobWithWorkspaceContext)(workspace_root_1.workspaceRoot, globs, exclude); return { response: JSON.stringify(files), description: 'handleMultiGlob', }; }