Skip to content

Commit

Permalink
Allow building to continue despite a missing remote/LICENSE file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Oct 21, 2021
1 parent c3488ed commit 42a0825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/gulpfile.reh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
2 changes: 1 addition & 1 deletion build/gulpfile.vscode.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/**`]));
Expand Down

0 comments on commit 42a0825

Please sign in to comment.