Skip to content

Commit a7a27f6

Browse files
committed
fix indentation
1 parent 74457df commit a7a27f6

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

readme.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -27,42 +27,42 @@ swift package init --type executable
2727

2828
2. Prepare your `Package.swift` file
2929

30-
2.1 Add the Swift AWS Lambda Runtime as a dependency
31-
32-
```bash
33-
swift package add-dependency https://github.com/swift-server/swift-aws-lambda-runtime.git --branch main
34-
swift package add-target-dependency AWSLambdaRuntime MyLambda --package swift-aws-lambda-runtime
35-
```
36-
37-
2.2 (Optional - only on macOS) Add `platforms` after `name`
38-
39-
```
40-
platforms: [.macOS(.v15)],
41-
```
42-
43-
2.3 Your `Package.swift` file must look like this
44-
45-
```swift
46-
// swift-tools-version: 6.0
47-
48-
import PackageDescription
49-
50-
let package = Package(
51-
name: "MyLambda",
52-
platforms: [.macOS(.v15)],
53-
dependencies: [
54-
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main"),
55-
],
56-
targets: [
57-
.executableTarget(
58-
name: "MyLambda",
59-
dependencies: [
60-
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
61-
]
62-
),
63-
]
64-
)
65-
```
30+
2.1 Add the Swift AWS Lambda Runtime as a dependency
31+
32+
```bash
33+
swift package add-dependency https://github.com/swift-server/swift-aws-lambda-runtime.git --branch main
34+
swift package add-target-dependency AWSLambdaRuntime MyLambda --package swift-aws-lambda-runtime
35+
```
36+
37+
2.2 (Optional - only on macOS) Add `platforms` after `name`
38+
39+
```
40+
platforms: [.macOS(.v15)],
41+
```
42+
43+
2.3 Your `Package.swift` file must look like this
44+
45+
```swift
46+
// swift-tools-version: 6.0
47+
48+
import PackageDescription
49+
50+
let package = Package(
51+
name: "MyLambda",
52+
platforms: [.macOS(.v15)],
53+
dependencies: [
54+
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main"),
55+
],
56+
targets: [
57+
.executableTarget(
58+
name: "MyLambda",
59+
dependencies: [
60+
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
61+
]
62+
),
63+
]
64+
)
65+
```
6666

6767
3. Edit `Sources/main.swift` file and replace the content with this code
6868

0 commit comments

Comments
 (0)