Rely on Object.assign

This commit is contained in:
Mariusz Nowak 2019-08-29 12:58:22 +02:00
parent aa0514a951
commit e2220c21fc
No known key found for this signature in database
GPG Key ID: B1FBDA8A182B03F2

View File

@ -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,
});