File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Examples/LocalDebugging/Shared
Plugins/AWSLambdaPackager Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ let package = Package(
1010 ] ,
1111 dependencies: [ ] ,
1212 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+ )
1620 ]
1721)
Original file line number Diff line number Diff line change @@ -235,16 +235,16 @@ struct AWSLambdaPackager: CommandPlugin {
235235
236236 // add resources
237237 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
240240 let artifactDirectory = " / \( artifactPathComponents. joined ( separator: " / " ) ) "
241241 for fileInArtifactDirectory in try FileManager . default. contentsOfDirectory ( atPath: artifactDirectory) {
242242 guard let artifactURL = URL ( string: " \( artifactDirectory) / \( fileInArtifactDirectory) " ) else {
243243 continue
244244 }
245-
245+
246246 guard artifactURL. pathExtension == " resources " else {
247- continue // Not resources, so don't copy
247+ continue // Not resources, so don't copy
248248 }
249249 let resourcesDirectoryName = artifactURL. lastPathComponent
250250 let relocatedResourcesDirectory = workingDirectory. appending ( path: resourcesDirectoryName)
@@ -256,7 +256,6 @@ struct AWSLambdaPackager: CommandPlugin {
256256 arguments. append ( resourcesDirectoryName)
257257 }
258258 }
259-
260259
261260 // run the zip tool
262261 try Utils . execute (
You can’t perform that action at this time.
0 commit comments