Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 17 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import PackageDescription
let package = Package(
name: "SwiftScript",
platforms: [
.macOS("26.0"),
.iOS("26.0"),
.macOS(.v13),
.iOS(.v16),
.tvOS(.v16),
.watchOS(.v9),
],
products: [
.library(name: "SwiftScriptAST", targets: ["SwiftScriptAST"]),
Expand All @@ -20,6 +22,17 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/swiftlang/swift-syntax", from: "603.0.0"),
// ShellKit owns the virtualised runtime context — IO sinks,
// Environment, Sandbox URL gate, NetworkConfig, ProcessTable,
// HostInfo, Command/ExitStatus. SwiftScript reads it through
// `ShellKit.Shell.current` so script output, input, file I/O,
// network calls, identity, and exit codes are all hookable by
// an embedder (SwiftBash, an iOS app, anything that builds a
// virtualised Shell). The standalone `swift-script` CLI uses
// `Shell.processDefault` so the binary still talks to real
// FileHandles when run on its own.
.package(url: "https://github.com/Cocoanetics/ShellKit",
branch: "main"),
],
targets: [
.target(
Expand All @@ -38,13 +51,15 @@ let package = Package(
dependencies: [
"SwiftScriptAST",
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "ShellKit", package: "ShellKit"),
],
path: "Sources/SwiftScriptInterpreter"
),
.executableTarget(
name: "swift-script",
dependencies: [
"SwiftScriptInterpreter",
.product(name: "ShellKit", package: "ShellKit"),
],
path: "Sources/swift-script"
),
Expand Down
Loading
Loading