@@ -16,7 +16,7 @@ class ServerlessPlugin {
16
16
17
17
serverless : ServerlessInstance
18
18
options : ServerlessOptions
19
- commands :{ [ key : string ] : any }
19
+ commands : { [ key : string ] : any }
20
20
hooks : { [ key : string ] : Function }
21
21
22
22
constructor ( serverless : ServerlessInstance , options : ServerlessOptions ) {
@@ -84,19 +84,19 @@ class ServerlessPlugin {
84
84
if ( ! fs . existsSync ( path . resolve ( path . join ( buildFolder , 'node_modules' ) ) ) ) {
85
85
fs . symlinkSync ( path . resolve ( 'node_modules' ) , path . resolve ( path . join ( buildFolder , 'node_modules' ) ) )
86
86
}
87
-
87
+
88
88
// 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 ) {
90
90
const files = await globby ( this . serverless . service . package . include )
91
-
91
+
92
92
for ( const filename of files ) {
93
93
const destFileName = path . resolve ( path . join ( buildFolder , filename ) )
94
94
const dirname = path . dirname ( destFileName )
95
-
95
+
96
96
if ( ! fs . existsSync ( dirname ) ) {
97
97
fs . mkdirpSync ( dirname )
98
98
}
99
-
99
+
100
100
if ( ! fs . existsSync ( destFileName ) ) {
101
101
fs . copySync ( path . resolve ( filename ) , path . resolve ( path . join ( buildFolder , filename ) ) )
102
102
}
@@ -114,7 +114,7 @@ class ServerlessPlugin {
114
114
this . serverless . service . package . artifact = path . join ( this . originalServicePath , serverlessFolder , path . basename ( this . serverless . service . package . artifact ) )
115
115
116
116
// Cleanup after everything is copied
117
- await this . cleanup ( ) ;
117
+ await this . cleanup ( )
118
118
}
119
119
120
120
async cleanup ( ) : Promise < void > {
0 commit comments