aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorTeemu Pòˆntelin <teemu@vaadin.com>2016-08-31 11:40:42 +0300
committerTeemu Pòˆntelin <teemu@vaadin.com>2016-08-31 11:40:42 +0300
commit45c8760521c878752c8fda6626ddbc28ef709813 (patch)
treee2480102c88bd004548e9bb14575a3b6ccf0c0e1 /tasks
parent59301895a76ceb93cfc8b665feb1046b23a80331 (diff)
downloadvaadin-core-45c8760521c878752c8fda6626ddbc28ef709813.tar.gz
vaadin-core-45c8760521c878752c8fda6626ddbc28ef709813.zip
Replace ES6 Object.assign with iterating keys
Diffstat (limited to 'tasks')
-rw-r--r--tasks/cdn.js6
1 files changed, 5 insertions, 1 deletions
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;
}