kittenipc/kitcom/internal/tsgo/core/projectreference.go
2025-10-15 10:12:44 +03:00

21 lines
493 B
Go

package core
import "efprojects.com/kitten-ipc/kitcom/internal/tsgo/tspath"
type ProjectReference struct {
Path string
OriginalPath string
Circular bool
}
func ResolveProjectReferencePath(ref *ProjectReference) string {
return ResolveConfigFileNameOfProjectReference(ref.Path)
}
func ResolveConfigFileNameOfProjectReference(path string) string {
if tspath.FileExtensionIs(path, tspath.ExtensionJson) {
return path
}
return tspath.CombinePaths(path, "tsconfig.json")
}