JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 444
  • Score
    100M100P100Q105059F
  • License ISC

require.resolve with search on extra paths

Package Exports

  • @yarn-tool/require-resolve
  • @yarn-tool/require-resolve/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@yarn-tool/require-resolve) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

README.md

require.resolve with search on extra paths

install

yarn add @yarn-tool/require-resolve
yarn-tool add @yarn-tool/require-resolve
yt add @yarn-tool/require-resolve
const tsdx_path = requireResolveExtra('tsdx').result;

let actual = requireResolveExtra('ts-jest', {
            includeGlobal: true,
            includeCurrentDirectory: true,
            paths: [
                tsdx_path,
            ],
        });

console.dir(actual);