A type safe swift ResultBuilder DSL for structured directories
1.4 kB
38 lines
1// swift-tools-version: 6.0
2// The swift-tools-version declares the minimum version of Swift required to build this package.
3
4import PackageDescription
5
6let package = Package(
7 name: "swift-file-tree",
8 platforms: [.macOS(.v15), .iOS(.v17)],
9 products: [
10 // Products define the executables and libraries a package produces, making them visible to other packages.
11 .library(name: "FileTree", targets: ["FileTree"]),
12 ],
13 dependencies: [
14 .package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.4.0"),
15 .package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.3.3"),
16 .package(url: "https://github.com/woodymelling/swift-parsing", branch: "android-support")
17 ],
18 targets: [
19 // Targets are the basic building blocks of a package, defining a module or a test suite.
20 // Targets can depend on other targets in this package and products from dependencies.
21 .target(
22 name: "FileTree",
23 dependencies: [
24 .product(name: "Conversions", package: "swift-parsing"),
25 .product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
26 ]
27 ),
28 .testTarget(
29 name: "FileTreeTests",
30 dependencies: [
31 "FileTree"
32 ],
33 resources: [
34 .copy("Resources")
35 ]
36 ),
37 ]
38)