diff --git a/Sources/PackagePlugin/PackageModel.swift b/Sources/PackagePlugin/PackageModel.swift index fff6774a26a..5f131d76ddf 100644 --- a/Sources/PackagePlugin/PackageModel.swift +++ b/Sources/PackagePlugin/PackageModel.swift @@ -178,8 +178,13 @@ public protocol Target { var name: String { get } /// The absolute path of the target directory in the local file system. + @available(_PackageDescription, deprecated: 6.1, renamed: "directoryURL") var directory: Path { get } + /// The absolute path of the target directory in the local file system. + @available(_PackageDescription, introduced: 6.1) + var directoryURL: URL { get } + /// Any other targets on which this target depends, in the same order as /// they are specified in the package manifest. Conditional dependencies /// that do not apply have already been filtered out.