2020-03-11 01:01:05 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const { resolveModuleName } = require('ts-pnp');
|
|
|
|
|
|
|
|
exports.resolveModuleName = (
|
|
|
|
typescript,
|
|
|
|
moduleName,
|
|
|
|
containingFile,
|
|
|
|
compilerOptions,
|
2023-08-22 12:58:53 +02:00
|
|
|
resolutionHost,
|
2020-03-11 01:01:05 +02:00
|
|
|
) => {
|
|
|
|
return resolveModuleName(
|
|
|
|
moduleName,
|
|
|
|
containingFile,
|
|
|
|
compilerOptions,
|
|
|
|
resolutionHost,
|
2023-08-22 12:58:53 +02:00
|
|
|
typescript.resolveModuleName,
|
2020-03-11 01:01:05 +02:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.resolveTypeReferenceDirective = (
|
|
|
|
typescript,
|
|
|
|
moduleName,
|
|
|
|
containingFile,
|
|
|
|
compilerOptions,
|
2023-08-22 12:58:53 +02:00
|
|
|
resolutionHost,
|
2020-03-11 01:01:05 +02:00
|
|
|
) => {
|
|
|
|
return resolveModuleName(
|
|
|
|
moduleName,
|
|
|
|
containingFile,
|
|
|
|
compilerOptions,
|
|
|
|
resolutionHost,
|
2023-08-22 12:58:53 +02:00
|
|
|
typescript.resolveTypeReferenceDirective,
|
2020-03-11 01:01:05 +02:00
|
|
|
);
|
|
|
|
};
|