A Swift package introducing separate AbsoluteFilePath and RelativeFilePath based on FilePath from Swift System.
Add swift-scoped-file-path as a dependency to your package:
let package = Package(
// ...
dependencies: [
.package(url: "https://github.com/Formkunft/swift-scoped-file-path", .upToNextMajor(from: "0.2.0")),
],
targets: [
.target(
// ...
dependencies: [
.product(name: "ScopedFilePath", package: "swift-scoped-file-path"),
]),
]
)Then, import ScopedFilePath in your code:
import ScopedFilePath
// ...