File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export class ServerlessPlugin {
65
65
}
66
66
67
67
get rootFileNames ( ) {
68
- return typescript . extractFileNames ( this . originalServicePath )
68
+ return typescript . extractFileNames ( this . originalServicePath , this . serverless . service . provider . name , this . functions )
69
69
}
70
70
71
71
prepare ( ) {
@@ -118,15 +118,14 @@ export class ServerlessPlugin {
118
118
this . serverless . config . servicePath = path . join ( this . originalServicePath , buildFolder )
119
119
}
120
120
121
- const tsFileNames = typescript . extractFileNames ( this . originalServicePath , this . serverless . service . provider . name , this . functions )
122
121
const tsconfig = typescript . getTypescriptConfig (
123
122
this . originalServicePath ,
124
123
this . isWatching ? null : this . serverless . cli
125
124
)
126
125
127
126
tsconfig . outDir = buildFolder
128
127
129
- const emitedFiles = await typescript . run ( tsFileNames , tsconfig )
128
+ const emitedFiles = await typescript . run ( this . rootFileNames , tsconfig )
130
129
await this . copyExtras ( )
131
130
return emitedFiles
132
131
}
You can’t perform that action at this time.
0 commit comments