diff --git a/src/index.ts b/src/index.ts index 27e1769b..e9b47706 100644 --- a/src/index.ts +++ b/src/index.ts @@ -202,6 +202,18 @@ export class TypeScriptPlugin { serverlessFolder, path.basename(this.serverless.service.package.artifact) ) + + this.serverless.service.getAllFunctions().forEach(name => { + if (this.serverless.service.functions[name].package.artifact) { + this.serverless.service.functions[name].package.artifact = path.join( + this.originalServicePath, + serverlessFolder, + path.basename( + this.serverless.service.functions[name].package.artifact + ) + ) + } + }) } async cleanup(): Promise {