Skip to content

Commit 4db4173

Browse files
committed
Hook to package:createDeploymentArtifacts
Signed-off-by: An Cao <[email protected]> deploy:createDeploymentArtifacts was deprecated. See: https://github.com/serverless/serverless/blob/cc0ada25cf5b4397c15c1d82c918f59942d0c702/lib/plugins/deploy/deploy.js#L24
1 parent 251a30e commit 4db4173

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ class ServerlessWebpack {
8181
};
8282

8383
this.hooks = {
84-
'before:deploy:createDeploymentArtifacts': () => BbPromise.bind(this)
84+
'before:package:createDeploymentArtifacts': () => BbPromise.bind(this)
8585
.then(this.validate)
8686
.then(this.compile)
8787
.then(this.packExternalModules)
8888
.then(this.packageModules),
8989

90-
'after:deploy:createDeploymentArtifacts': () => BbPromise.bind(this)
90+
'after:package:createDeploymentArtifacts': () => BbPromise.bind(this)
9191
.then(this.cleanup),
9292

9393
'before:deploy:function:packageFunction': () => BbPromise.bind(this)

0 commit comments

Comments
 (0)