Skip to content

Commit

Permalink
Merge pull request #4 from uhooi/patch-4
Browse files Browse the repository at this point in the history
Refactor Package.swift
  • Loading branch information
edelabar authored Feb 17, 2023
2 parents 8223dd6 + 68a95ce commit c8f98d8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 39 deletions.
51 changes: 14 additions & 37 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,25 @@ let package = Package(
.executable(name: "publish-cli", targets: ["PublishCLI"])
],
dependencies: [
.package(
name: "Ink",
url: "https://github.com/johnsundell/ink.git",
from: "0.2.0"
),
.package(
name: "Plot",
url: "https://github.com/johnsundell/plot.git",
from: "0.9.0"
),
.package(
name: "Files",
url: "https://github.com/johnsundell/files.git",
from: "4.0.0"
),
.package(
name: "Codextended",
url: "https://github.com/johnsundell/codextended.git",
from: "0.1.0"
),
.package(
name: "ShellOut",
url: "https://github.com/johnsundell/shellout.git",
from: "2.3.0"
),
.package(
name: "Sweep",
url: "https://github.com/johnsundell/sweep.git",
from: "0.4.0"
),
.package(
name: "CollectionConcurrencyKit",
url: "https://github.com/johnsundell/collectionConcurrencyKit.git",
from: "0.1.0"
)
.package(url: "https://github.com/johnsundell/ink.git", from: "0.2.0"),
.package(url: "https://github.com/johnsundell/plot.git", from: "0.9.0"),
.package(url: "https://github.com/johnsundell/files.git", from: "4.0.0"),
.package(url: "https://github.com/johnsundell/codextended.git", from: "0.1.0"),
.package(url: "https://github.com/johnsundell/shellout.git", from: "2.3.0"),
.package(url: "https://github.com/johnsundell/sweep.git", from: "0.4.0"),
.package(url: "https://github.com/johnsundell/collectionConcurrencyKit.git", from: "0.1.0")
],
targets: [
.target(
name: "Publish",
dependencies: [
"Ink", "Plot", "Files", "Codextended",
"ShellOut", "Sweep", "CollectionConcurrencyKit"
.product(name: "Ink", package: "ink"),
.product(name: "Plot", package: "plot"),
.product(name: "Files", package: "files"),
.product(name: "Codextended", package: "codextended"),
.product(name: "ShellOut", package: "shellout"),
.product(name: "Sweep", package: "sweep"),
.product(name: "CollectionConcurrencyKit", package: "collectionConcurrencyKit")
]
),
.executableTarget(
Expand Down
6 changes: 4 additions & 2 deletions Sources/PublishCLICore/ProjectGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,14 @@ private extension ProjectGenerator {
)
],
dependencies: [
.package(name: "Publish", \(dependencyString))
.package(\(dependencyString))
],
targets: [
.executableTarget(
name: "\(name)",
dependencies: ["Publish"]
dependencies: [
.product(name: "Publish", package: "publish")
]
)
]
)
Expand Down

0 comments on commit c8f98d8

Please sign in to comment.