Rebuild for release with options parsing fix. (#3618)

This commit is contained in:
Sam El-Husseini
2020-01-21 13:40:17 -08:00
committed by GitHub
parent 70f42b3395
commit b87d23b976
7 changed files with 22 additions and 22 deletions

View File

@@ -915,12 +915,13 @@ gulp.task('package', gulp.parallel(
// The release task prepares Blockly for an npm release.
// It rebuilds the Blockly compressed files and updates the TypeScript
// typings, and then packages all the npm release files into the /dist directory
gulp.task('release', gulp.series(['build', 'typings', function() {
gulp.task('release', gulp.series(['build', 'typings', function(cb) {
// Clean directory if exists
if (fs.existsSync(packageDistribution)) {
rimraf.sync(packageDistribution);
}
fs.mkdirSync(packageDistribution);
cb();
}, 'package']));
// The default task builds Blockly.