Skip to content

Commit

Permalink
Merge pull request #163 from prisma/fix/file-watcher-this-context
Browse files Browse the repository at this point in the history
fix: watch files callback missing correct this context
  • Loading branch information
JackCuthbert committed Jul 15, 2019
2 parents c99fe30 + ea9d96c commit 424fe49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -131,7 +131,7 @@ export class TypeScriptPlugin {
this.serverless.cli.log(`Watching typescript files...`)

this.isWatching = true
watchFiles(this.rootFileNames, this.originalServicePath, this.compileTs)
watchFiles(this.rootFileNames, this.originalServicePath, this.compileTs.bind(this))
}

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

0 comments on commit 424fe49

Please sign in to comment.