From: Teemu Pòˆntelin Date: Tue, 30 Aug 2016 09:13:49 +0000 (+0300) Subject: Use correct bower.json depending on version X-Git-Tag: v1.2.0~14^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=46717c831bbbc19b9b0c29512e17b230c775f48b;p=vaadin-core.git Use correct bower.json depending on version --- diff --git a/tasks/docsite.js b/tasks/docsite.js index 2543662..4c18233 100644 --- a/tasks/docsite.js +++ b/tasks/docsite.js @@ -19,7 +19,6 @@ var stagingPath = stagingBasePath + '/' + version; var modify = require('gulp-modify'); var rootZip = 'target/'; var fileZip = 'docsite.zip'; -var bowerJson = require('../bower.json'); gulp.task('cdn:docsite:clean', function() { fs.removeSync(docPath); @@ -57,6 +56,7 @@ gulp.task('cdn:docsite:core-elements-integrations', function() { }); gulp.task('cdn:docsite:core-elements-elements', ['cdn:docsite:bower_components'], function() { + const bowerJson = require('../' + stagingPath + '/bower.json'); var docsPaths = Object.keys(bowerJson.dependencies).map(function(c) { return stagingPath + '/' + c + '/docs/**'; });