21 lines
493 B
Go
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")
|
|
}
|