Skip to content

Commit 370fb79

Browse files
committed
fix for deploying individual packages.
1 parent 7a34fd2 commit 370fb79

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/cleanup.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ module.exports = {
1818
if (err) {
1919
reject(err);
2020
} else {
21+
if (this.serverless.service.package.individually) {
22+
const functionNames = this.serverless.service.getAllFunctions();
23+
functionNames.forEach(name => {
24+
this.serverless.service.functions[name].artifact = path.join(
25+
this.serverless.config.servicePath,
26+
'.serverless',
27+
path.basename(this.serverless.service.functions[name].artifact)
28+
);
29+
});
30+
resolve();
31+
return;
32+
}
33+
2134
this.serverless.service.package.artifact = path.join(
2235
this.serverless.config.servicePath,
2336
'.serverless',

0 commit comments

Comments
 (0)