Skip to content

Commit

Permalink
Merge pull request #34 from finestructure/issue-33
Browse files Browse the repository at this point in the history
Fixes #33
  • Loading branch information
finestructure authored Mar 22, 2020
2 parents dc3c32a + e37ef0c commit 8bc5774
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/ArenaCore/ArenaCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ extension Arena {
let packagePath = projectPath/"Package.swift"
let packageDescription = try String(contentsOf: packagePath)
let productsClause = libs.map {
"""
.product(name: "\($0.libraryName)", package: "\($0.packageName)")
"""
$0.libraryName == $0.packageName
? #".product(name: "\#($0.libraryName)")"#
: #".product(name: "\#($0.libraryName)", package: "\#($0.packageName)")"#
}.joined(separator: ",\n")
let updatedTgts = """
package.targets = [
Expand Down
12 changes: 12 additions & 0 deletions misc/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

swift build

for cmd in "arena https://github.com/pointfreeco/swift-gen.git"
do
echo "-------------------------"
echo $cmd
swift run ${cmd} -f --skip-open
echo
done
echo "-------------------------"

0 comments on commit 8bc5774

Please sign in to comment.