From e2220c21fcdf8d113d30a53147f251cafe1784df Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Thu, 29 Aug 2019 12:58:22 +0200 Subject: [PATCH] Rely on Object.assign --- lib/plugins/aws/customResources/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/plugins/aws/customResources/index.js b/lib/plugins/aws/customResources/index.js index 4cc291079..777638826 100644 --- a/lib/plugins/aws/customResources/index.js +++ b/lib/plugins/aws/customResources/index.js @@ -3,7 +3,6 @@ const path = require('path'); const crypto = require('crypto'); const BbPromise = require('bluebird'); -const _ = require('lodash'); const fse = BbPromise.promisifyAll(require('fs-extra')); const childProcess = BbPromise.promisifyAll(require('child_process')); const getTmpDirPath = require('../../../utils/fs/getTmpDirPath'); @@ -149,7 +148,7 @@ function addCustomResourceToService(awsProvider, resourceName, iamRoleStatements DependsOn: [customResourcesRoleLogicalId], }; - _.merge(Resources, { + Object.assign(Resources, { [customResourceFunctionLogicalId]: customResourceFunction, [customResourcesRoleLogicalId]: customResourceRole, });