@@ -16,7 +16,7 @@ class ServerlessPlugin {
1616
1717 serverless : ServerlessInstance
1818 options : ServerlessOptions
19- commands :{ [ key : string ] : any }
19+ commands : { [ key : string ] : any }
2020 hooks : { [ key : string ] : Function }
2121
2222 constructor ( serverless : ServerlessInstance , options : ServerlessOptions ) {
@@ -84,19 +84,19 @@ class ServerlessPlugin {
8484 if ( ! fs . existsSync ( path . resolve ( path . join ( buildFolder , 'node_modules' ) ) ) ) {
8585 fs . symlinkSync ( path . resolve ( 'node_modules' ) , path . resolve ( path . join ( buildFolder , 'node_modules' ) ) )
8686 }
87-
87+
8888 // include any "extras" from the "include" section
89- if ( this . serverless . service . package . include && this . serverless . service . package . include . length > 0 ) {
89+ if ( this . serverless . service . package . include && this . serverless . service . package . include . length > 0 ) {
9090 const files = await globby ( this . serverless . service . package . include )
91-
91+
9292 for ( const filename of files ) {
9393 const destFileName = path . resolve ( path . join ( buildFolder , filename ) )
9494 const dirname = path . dirname ( destFileName )
95-
95+
9696 if ( ! fs . existsSync ( dirname ) ) {
9797 fs . mkdirpSync ( dirname )
9898 }
99-
99+
100100 if ( ! fs . existsSync ( destFileName ) ) {
101101 fs . copySync ( path . resolve ( filename ) , path . resolve ( path . join ( buildFolder , filename ) ) )
102102 }
@@ -114,7 +114,7 @@ class ServerlessPlugin {
114114 this . serverless . service . package . artifact = path . join ( this . originalServicePath , serverlessFolder , path . basename ( this . serverless . service . package . artifact ) )
115115
116116 // Cleanup after everything is copied
117- await this . cleanup ( ) ;
117+ await this . cleanup ( )
118118 }
119119
120120 async cleanup ( ) : Promise < void > {
0 commit comments