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

Function GetRelativePathFromFile

internal/tspath/path.go:781–783  ·  view source on GitHub ↗
(from string, to string, options ComparePathsOptions)

Source from the content-addressed store, hash-verified

779}
780
781func GetRelativePathFromFile(from string, to string, options ComparePathsOptions) string {
782 return EnsurePathIsNonModuleName(GetRelativePathFromDirectory(GetDirectoryPath(from), to, options))
783}
784
785func ConvertToRelativePath(absoluteOrRelativePath string, options ComparePathsOptions) string {
786 if !IsRootedDiskPath(absoluteOrRelativePath) {

Callers 4

verifyCompilerOptionsMethod · 0.92
resolveExternalModuleMethod · 0.92
ConvertToTSConfigFunction · 0.92
serializeCompilerOptionsFunction · 0.92

Calls 3

GetDirectoryPathFunction · 0.85

Tested by

no test coverage detected