mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
remove use of spread for node 4 support
This commit is contained in:
parent
577f85d070
commit
b35d37f896
@ -82,7 +82,7 @@ module.exports = {
|
||||
this.serverless.cli.log('Uploading artifacts...');
|
||||
|
||||
const functionNames = this.serverless.service.getAllFunctions();
|
||||
const artifactFilePaths = _.uniq(
|
||||
let artifactFilePaths = _.uniq(
|
||||
_.map(functionNames, (name) => {
|
||||
const functionArtifactFileName = this.provider.naming.getFunctionArtifactName(name);
|
||||
const functionObject = this.serverless.service.getFunction(name);
|
||||
@ -104,7 +104,7 @@ module.exports = {
|
||||
);
|
||||
|
||||
const layerNames = this.serverless.service.getAllLayers();
|
||||
artifactFilePaths.push(..._.map(layerNames, (name) => {
|
||||
artifactFilePaths = artifactFilePaths.concat(_.map(layerNames, (name) => {
|
||||
const layerObject = this.serverless.service.getLayer(name);
|
||||
|
||||
if (layerObject.package && layerObject.package.artifact) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user