Skip to content

Commit 424fe49

Browse files
authored
Merge pull request #163 from prisma/fix/file-watcher-this-context
fix: watch files callback missing correct this context
2 parents c99fe30 + ea9d96c commit 424fe49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class TypeScriptPlugin {
131131
this.serverless.cli.log(`Watching typescript files...`)
132132

133133
this.isWatching = true
134-
watchFiles(this.rootFileNames, this.originalServicePath, this.compileTs)
134+
watchFiles(this.rootFileNames, this.originalServicePath, this.compileTs.bind(this))
135135
}
136136

137137
async compileTs(): Promise<string[]> {

0 commit comments

Comments
 (0)