From bca5f87a1e369f5ee2d7c1ce494295b0c3391b40 Mon Sep 17 00:00:00 2001 From: Andrew Matheny Date: Thu, 8 Jun 2017 13:17:21 -0400 Subject: [PATCH] Compile typescript before serverless-offline starts up --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index a70763f5..9b63e4bb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,6 +24,7 @@ class ServerlessPlugin { this.options = options this.hooks = { + 'before:offline:start:init': this.beforeCreateDeploymentArtifacts.bind(this), 'before:deploy:createDeploymentArtifacts': this.beforeCreateDeploymentArtifacts.bind(this), 'after:deploy:createDeploymentArtifacts': this.afterCreateDeploymentArtifacts.bind(this), 'before:invoke:local:invoke': this.beforeCreateDeploymentArtifacts.bind(this),