mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
44 lines
853 B
JavaScript
44 lines
853 B
JavaScript
// @remove-on-eject-begin
|
|
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
// @remove-on-eject-end
|
|
'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
|
|
);
|
|
};
|