We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a34fd2 + 64e2391 commit 77f85f6Copy full SHA for 77f85f6
.gitignore
@@ -2,3 +2,5 @@ node_modules
2
dist
3
.webpack
4
coverage
5
+
6
+.idea
lib/cleanup.js
@@ -18,6 +18,19 @@ module.exports = {
18
if (err) {
19
reject(err);
20
} 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
34
this.serverless.service.package.artifact = path.join(
35
this.serverless.config.servicePath,
36
'.serverless',
0 commit comments