Skip to content

Commit

Permalink
removed SPM support for SourceryJS as it does not work (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyapuchka committed Jan 31, 2018
1 parent 9e597af commit 883625a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ let package = Package(
products: [
.executable(name: "sourcery", targets: ["Sourcery"]),
.library(name: "SourceryRuntime", targets: ["SourceryRuntime"]),
.library(name: "SourceryJS", targets: ["SourceryJS"]),
],
dependencies: [
.package(url: "https://github.com/kylef/Commander.git", from: "0.6.1"),
Expand All @@ -22,7 +21,6 @@ let package = Package(
targets: [
.target(name: "Sourcery", dependencies: [
"SourceryRuntime",
"SourceryJS",
"Commander",
"PathKit",
"SourceKittenFramework",
Expand All @@ -32,9 +30,5 @@ let package = Package(
"SwiftTryCatch",
]),
.target(name: "SourceryRuntime"),
.target(name: "SourceryJS", dependencies: [
"PathKit",
"SourceryRuntime",
]),
]
)
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if SWIFT_PACKAGE
#else
import SourceryJS
import SourceryRuntime
import JavaScriptCore
Expand Down Expand Up @@ -51,3 +53,4 @@ private extension JSContext {
}

}
#endif
2 changes: 1 addition & 1 deletion Sourcery/Sourcery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import Foundation
import PathKit
import SwiftTryCatch
import SourceryRuntime
import SourceryJS

#if SWIFT_PACKAGE
#else
import SourceryJS
import SourcerySwift
#endif

Expand Down

0 comments on commit 883625a

Please sign in to comment.