File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export class ServerlessPlugin {
6565 }
6666
6767 get rootFileNames ( ) {
68- return typescript . extractFileNames ( this . originalServicePath )
68+ return typescript . extractFileNames ( this . originalServicePath , this . serverless . service . provider . name , this . functions )
6969 }
7070
7171 prepare ( ) {
@@ -118,15 +118,14 @@ export class ServerlessPlugin {
118118 this . serverless . config . servicePath = path . join ( this . originalServicePath , buildFolder )
119119 }
120120
121- const tsFileNames = typescript . extractFileNames ( this . originalServicePath , this . serverless . service . provider . name , this . functions )
122121 const tsconfig = typescript . getTypescriptConfig (
123122 this . originalServicePath ,
124123 this . isWatching ? null : this . serverless . cli
125124 )
126125
127126 tsconfig . outDir = buildFolder
128127
129- const emitedFiles = await typescript . run ( tsFileNames , tsconfig )
128+ const emitedFiles = await typescript . run ( this . rootFileNames , tsconfig )
130129 await this . copyExtras ( )
131130 return emitedFiles
132131 }
You can’t perform that action at this time.
0 commit comments