Skip to content

Commit 4bace79

Browse files
authored
Added support for serverless run (#49)
Added hooks to support the new `serverless run` command. Compiling works, but watch mode does not. Probably because of the way that `serverless run` loads the files.
1 parent bf1c554 commit 4bace79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export class TypeScriptPlugin {
2828
this.options = options
2929

3030
this.hooks = {
31+
'before:run:run': async () => {
32+
await this.compileTs()
33+
},
3134
'before:offline:start': async () => {
3235
await this.compileTs()
3336
this.watchAll()

0 commit comments

Comments
 (0)