pnpTs.js 620 B

1234567891011121314151617181920212223242526272829303132333435
  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. };