mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-15 09:04:04 +02:00
36 lines
586 B
JavaScript
36 lines
586 B
JavaScript
'use strict';
|
|
|
|
const { resolveModuleName } = require('ts-pnp');
|
|
|
|
exports.resolveModuleName = (
|
|
typescript,
|
|
moduleName,
|
|
containingFile,
|
|
compilerOptions,
|
|
resolutionHost
|
|
) => {
|
|
return resolveModuleName(
|
|
moduleName,
|
|
containingFile,
|
|
compilerOptions,
|
|
resolutionHost,
|
|
typescript.resolveModuleName
|
|
);
|
|
};
|
|
|
|
exports.resolveTypeReferenceDirective = (
|
|
typescript,
|
|
moduleName,
|
|
containingFile,
|
|
compilerOptions,
|
|
resolutionHost
|
|
) => {
|
|
return resolveModuleName(
|
|
moduleName,
|
|
containingFile,
|
|
compilerOptions,
|
|
resolutionHost,
|
|
typescript.resolveTypeReferenceDirective
|
|
);
|
|
};
|