You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
620 B

  1. 'use strict';
  2. const { resolveModuleName } = require('ts-pnp');
  3. exports.resolveModuleName = (
  4. typescript,
  5. moduleName,
  6. containingFile,
  7. compilerOptions,
  8. resolutionHost
  9. ) => {
  10. return resolveModuleName(
  11. moduleName,
  12. containingFile,
  13. compilerOptions,
  14. resolutionHost,
  15. typescript.resolveModuleName
  16. );
  17. };
  18. exports.resolveTypeReferenceDirective = (
  19. typescript,
  20. moduleName,
  21. containingFile,
  22. compilerOptions,
  23. resolutionHost
  24. ) => {
  25. return resolveModuleName(
  26. moduleName,
  27. containingFile,
  28. compilerOptions,
  29. resolutionHost,
  30. typescript.resolveTypeReferenceDirective
  31. );
  32. };