Skip to content

Commit 62070ca

Browse files
committed
fixed small syntax error
1 parent cc3f54d commit 62070ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)