-
-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathPackage.swift
More file actions
28 lines (26 loc) · 767 Bytes
/
Package.swift
File metadata and controls
28 lines (26 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Counter",
products: [
.library(
name: "Counter",
targets: ["Counter"]),
],
dependencies: [.package(name: "JavaScriptKit", path: "../../")],
targets: [
.target(
name: "Counter",
dependencies: [
.product(name: "JavaScriptKit", package: "JavaScriptKit")
]),
.testTarget(
name: "CounterTests",
dependencies: [
"Counter",
// This is needed to run the tests in the JavaScript event loop
.product(name: "JavaScriptEventLoopTestSupport", package: "JavaScriptKit")
]
),
]
)