diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js index f21acee9784..401ddb001d8 100644 --- a/build/gulpfile.reh.js +++ b/build/gulpfile.reh.js @@ -263,7 +263,7 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa const productJsonStream = gulp.src(['product.json'], { base: '.' }) .pipe(json({ commit, date })); - const license = gulp.src(['remote/LICENSE'], { base: 'remote' }); + const license = gulp.src(['remote/LICENSE'], { base: 'remote', allowEmpty: true }); const jsFilter = util.filter(data => !data.isDirectory() && /\.js$/.test(data.path)); diff --git a/build/gulpfile.vscode.web.js b/build/gulpfile.vscode.web.js index 2775330ccd8..bf45fc26cd2 100644 --- a/build/gulpfile.vscode.web.js +++ b/build/gulpfile.vscode.web.js @@ -153,7 +153,7 @@ function packageTask(sourceFolderName, destinationFolderName) { const packageJsonStream = gulp.src(['remote/web/package.json'], { base: 'remote/web' }) .pipe(json({ name, version })); - const license = gulp.src(['remote/LICENSE'], { base: 'remote' }); + const license = gulp.src(['remote/LICENSE'], { base: 'remote', allowEmpty: true }); const productionDependencies = getProductionDependencies(WEB_FOLDER); const dependenciesSrc = _.flatten(productionDependencies.map(d => path.relative(REPO_ROOT, d.path)).map(d => [`${d}/**`, `!${d}/**/{test,tests}/**`, `!${d}/.bin/**`]));