File tree 2 files changed +11
-8
lines changed
Examples/LocalDebugging/Shared
Plugins/AWSLambdaPackager
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ let package = Package(
10
10
] ,
11
11
dependencies: [ ] ,
12
12
targets: [
13
- . target( name: " Shared " , dependencies: [ ] , resources: [
14
- . process( " Resources " )
15
- ] )
13
+ . target(
14
+ name: " Shared " ,
15
+ dependencies: [ ] ,
16
+ resources: [
17
+ . process( " Resources " )
18
+ ]
19
+ )
16
20
]
17
21
)
Original file line number Diff line number Diff line change @@ -235,16 +235,16 @@ struct AWSLambdaPackager: CommandPlugin {
235
235
236
236
// add resources
237
237
var artifactPathComponents = artifactPath. pathComponents
238
- _ = artifactPathComponents. removeFirst ( ) // Get rid of beginning "/"
239
- _ = artifactPathComponents. removeLast ( ) // Get rid of the name of the package
238
+ _ = artifactPathComponents. removeFirst ( ) // Get rid of beginning "/"
239
+ _ = artifactPathComponents. removeLast ( ) // Get rid of the name of the package
240
240
let artifactDirectory = " / \( artifactPathComponents. joined ( separator: " / " ) ) "
241
241
for fileInArtifactDirectory in try FileManager . default. contentsOfDirectory ( atPath: artifactDirectory) {
242
242
guard let artifactURL = URL ( string: " \( artifactDirectory) / \( fileInArtifactDirectory) " ) else {
243
243
continue
244
244
}
245
-
245
+
246
246
guard artifactURL. pathExtension == " resources " else {
247
- continue // Not resources, so don't copy
247
+ continue // Not resources, so don't copy
248
248
}
249
249
let resourcesDirectoryName = artifactURL. lastPathComponent
250
250
let relocatedResourcesDirectory = workingDirectory. appending ( path: resourcesDirectoryName)
@@ -256,7 +256,6 @@ struct AWSLambdaPackager: CommandPlugin {
256
256
arguments. append ( resourcesDirectoryName)
257
257
}
258
258
}
259
-
260
259
261
260
// run the zip tool
262
261
try Utils . execute (
You can’t perform that action at this time.
0 commit comments