MCPcopy Create free account
hub / github.com/microsoft/typescript-go / resolveConfig

Method resolveConfig

internal/module/resolver.go:371–377  ·  view source on GitHub ↗
(moduleName string, containingFile string)

Source from the content-addressed store, hash-verified

369}
370
371func (r *Resolver) resolveConfig(moduleName string, containingFile string) *ResolvedModule {
372 containingDirectory := tspath.GetDirectoryPath(containingFile)
373 state := newResolutionState(moduleName, containingDirectory, false /*isTypeReferenceDirective*/, core.ModuleKindCommonJS, r.compilerOptions, nil, r, nil)
374 state.isConfigLookup = true
375 state.extensions = extensionsJson
376 return state.resolveNodeLike()
377}
378
379func (r *tracer) traceTypeReferenceDirectiveResult(typeReferenceDirectiveName string, result *ResolvedTypeReferenceDirective) {
380 if !result.IsResolved() {

Callers 1

ResolveConfigFunction · 0.95

Calls 3

GetDirectoryPathFunction · 0.92
newResolutionStateFunction · 0.85
resolveNodeLikeMethod · 0.80

Tested by

no test coverage detected