File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ class RustPlugin {
35
35
this . hooks = {
36
36
"before:package:createDeploymentArtifacts" : this . build . bind ( this ) ,
37
37
"before:deploy:function:packageFunction" : this . build . bind ( this ) ,
38
+ "before:offline:start" : this . build . bind ( this ) ,
39
+ "before:offline:start:init" : this . build . bind ( this ) ,
38
40
} ;
39
41
if ( includeInvokeHook ( serverless . version ) ) {
40
42
this . hooks [ "before:invoke:local:invoke" ] = this . build . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ describe("RustPlugin", () => {
26
26
assert . deepEqual ( Object . keys ( plugin . hooks ) , [
27
27
"before:package:createDeploymentArtifacts" ,
28
28
"before:deploy:function:packageFunction" ,
29
+ "before:offline:start" ,
30
+ "before:offline:start:init" ,
29
31
] ) ;
30
32
} ) ;
31
33
it ( "sets sensible defaults" , ( ) => {
You can’t perform that action at this time.
0 commit comments