@@ -8,11 +8,17 @@ let package = Package(
8
8
products: [
9
9
// this library exports `AWSLambdaRuntimeCore` and adds Foundation convenience methods
10
10
. library( name: " AWSLambdaRuntime " , targets: [ " AWSLambdaRuntime " ] ) ,
11
+
12
+ // this library exports `AWSLambdaRuntime` and adds conformances to `Service` from Swift Service Lifecycle
13
+ . library( name: " AWSLambdaRuntimeService " , targets: [ " AWSLambdaRuntimeService " ] ) ,
14
+
11
15
// this has all the main functionality for lambda and it does not link Foundation
12
16
. library( name: " AWSLambdaRuntimeCore " , targets: [ " AWSLambdaRuntimeCore " ] ) ,
17
+
13
18
// plugin to package the lambda, creating an archive that can be uploaded to AWS
14
19
// requires Linux or at least macOS v15
15
20
. plugin( name: " AWSLambdaPackager " , targets: [ " AWSLambdaPackager " ] ) ,
21
+
16
22
// for testing only
17
23
. library( name: " AWSLambdaTesting " , targets: [ " AWSLambdaTesting " ] ) ,
18
24
] ,
@@ -22,12 +28,18 @@ let package = Package(
22
28
. package ( url: " https://github.com/swift-server/swift-service-lifecycle.git " , from: " 2.6.3 " ) ,
23
29
] ,
24
30
targets: [
31
+ . target(
32
+ name: " AWSLambdaRuntimeService " ,
33
+ dependencies: [
34
+ . byName( name: " AWSLambdaRuntime " ) ,
35
+ . product( name: " ServiceLifecycle " , package : " swift-service-lifecycle " ) ,
36
+ ]
37
+ ) ,
25
38
. target(
26
39
name: " AWSLambdaRuntime " ,
27
40
dependencies: [
28
41
. byName( name: " AWSLambdaRuntimeCore " ) ,
29
42
. product( name: " NIOCore " , package : " swift-nio " ) ,
30
- . product( name: " ServiceLifecycle " , package : " swift-service-lifecycle " ) ,
31
43
]
32
44
) ,
33
45
. target(
0 commit comments