From 45c8760521c878752c8fda6626ddbc28ef709813 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Teemu=20Po=CC=88ntelin?= Date: Wed, 31 Aug 2016 11:40:42 +0300 Subject: [PATCH] Replace ES6 Object.assign with iterating keys --- tasks/cdn.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/cdn.js b/tasks/cdn.js index 7d8f28e..4c83c0c 100644 --- a/tasks/cdn.js +++ b/tasks/cdn.js @@ -25,7 +25,11 @@ gulp.task('cdn:stage-bower.json', ['clean:cdn'], function() { if (version === 'master') { gutil.log('Applying overrides to ' + stagingPath + '/bower.json'); - bowerJson = Object.assign(bowerJson, bowerJson.masterOverrides); + + // Assign the override properties. + Object.keys(bowerJson.masterOverrides).forEach(override => { + bowerJson[override] = bowerJson.masterOverrides[override]; + }); delete bowerJson.masterOverrides; } -- 2.39.5