// swift-tools-version:4.0

import PackageDescription

let package = Package(
    name: "Syft",
    products: [
        .library(name: "Syft", targets: ["Syft"])
    ],
    targets: [
        .target(
            name: "Sample",
            dependencies: ["Syft"]),
        .target(
            name: "Syft"),
        .testTarget(
            name: "SyftTests",
            dependencies: ["Syft"])
    ]
)

// swift-tools-version:4.0

import PackageDescription

let package = Package(
    name: "Syft",
    targets: [
        .target(
            name: "Sample",
            dependencies: ["Syft"]),
        .target(
            name: "Syft"),
        .testTarget(
            name: "SyftTests",
            dependencies: ["Syft"])
    ]
)

--- 
+++ 
@@ -4,6 +4,9 @@
 
 let package = Package(
     name: "Syft",
+    products: [
+        .library(name: "Syft", targets: ["Syft"])
+    ],
     targets: [
         .target(
             name: "Sample",
Make the lib a product.
