diff --git a/Sources/ProjectSpec/PathContainer.swift b/Sources/ProjectSpec/PathContainer.swift index 0179dc59..a21e1e2e 100644 --- a/Sources/ProjectSpec/PathContainer.swift +++ b/Sources/ProjectSpec/PathContainer.swift @@ -14,6 +14,7 @@ enum PathProperty { } extension Array where Element == PathProperty { + func resolvingPaths(in jsonDictionary: JSONDictionary, relativeTo path: Path) -> JSONDictionary { var result = jsonDictionary diff --git a/Sources/ProjectSpec/Spec.swift b/Sources/ProjectSpec/Spec.swift index 8852558a..10f2c415 100644 --- a/Sources/ProjectSpec/Spec.swift +++ b/Sources/ProjectSpec/Spec.swift @@ -70,6 +70,7 @@ public struct Spec { } extension Spec { + func resolvingPaths(relativeTo basePath: Path = Path()) -> Spec { let relativePath = (basePath + self.relativePath).normalize() guard relativePath != Path() else {