File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,6 @@ class ServerlessPlugin {
104
104
}
105
105
106
106
async afterCreateDeploymentArtifacts ( ) : Promise < void > {
107
- // Restore service path
108
- this . serverless . config . servicePath = this . originalServicePath
109
-
110
107
// Copy .build to .serverless
111
108
await fs . copy (
112
109
path . join ( this . originalServicePath , buildFolder , serverlessFolder ) ,
@@ -115,8 +112,8 @@ class ServerlessPlugin {
115
112
116
113
this . serverless . service . package . artifact = path . join ( this . originalServicePath , serverlessFolder , path . basename ( this . serverless . service . package . artifact ) )
117
114
118
- // Remove temp build folder
119
- fs . removeSync ( path . join ( this . originalServicePath , buildFolder ) )
115
+ // Cleanup after everything is copied
116
+ await this . cleanup ( ) ;
120
117
}
121
118
122
119
async cleanup ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments