UNPKG

nx

Version:

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

18 lines (17 loc) 491 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveRelativeToDir = resolveRelativeToDir; /** * NOTE: This function is in its own file because it is not possible to mock * require.resolve directly in jest https://github.com/jestjs/jest/issues/9543 */ function resolveRelativeToDir(path, relativeToDir) { try { return require.resolve(path, { paths: [relativeToDir], }); } catch { return null; } }