30 lines
1 KiB
Swift
30 lines
1 KiB
Swift
|
// swift-tools-version: 6.0
|
||
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||
|
|
||
|
import PackageDescription
|
||
|
|
||
|
|
||
|
var packageDependencies: [Package.Dependency] = [
|
||
|
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "4.57.0")),
|
||
|
]
|
||
|
|
||
|
var targetDependencies: [PackageDescription.Target.Dependency] = [
|
||
|
.product(name: "Vapor", package: "vapor"),
|
||
|
]
|
||
|
|
||
|
packageDependencies.append(.package(url: "https://github.com/nerzh/swift-telegram-sdk", .upToNextMajor(from: "3.0.3")))
|
||
|
targetDependencies.append(.product(name: "SwiftTelegramSdk", package: "swift-telegram-sdk"))
|
||
|
|
||
|
let package = Package(
|
||
|
name: "TelegramModeratorBot",
|
||
|
dependencies: packageDependencies,
|
||
|
targets: [
|
||
|
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||
|
// Targets can depend on other targets in this package and products from dependencies.
|
||
|
.executableTarget(
|
||
|
name: "TelegramModeratorBot",
|
||
|
dependencies: targetDependencies
|
||
|
),
|
||
|
]
|
||
|
)
|