diff options
author | Teemu Pòˆntelin <teemu@vaadin.com> | 2016-08-31 11:40:42 +0300 |
---|---|---|
committer | Teemu Pòˆntelin <teemu@vaadin.com> | 2016-08-31 11:40:42 +0300 |
commit | 45c8760521c878752c8fda6626ddbc28ef709813 (patch) | |
tree | e2480102c88bd004548e9bb14575a3b6ccf0c0e1 | |
parent | 59301895a76ceb93cfc8b665feb1046b23a80331 (diff) | |
download | vaadin-core-45c8760521c878752c8fda6626ddbc28ef709813.tar.gz vaadin-core-45c8760521c878752c8fda6626ddbc28ef709813.zip |
Replace ES6 Object.assign with iterating keys
-rw-r--r-- | tasks/cdn.js | 6 |
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; } |