mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
chore(deps): bump rimraf from 3.0.2 to 4.0.7 (#6778)
* chore(deps): bump rimraf from 3.0.2 to 4.0.7 Bumps [rimraf](https://github.com/isaacs/rimraf) from 3.0.2 to 4.0.7. - [Release notes](https://github.com/isaacs/rimraf/releases) - [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/rimraf/compare/v3.0.2...v4.0.7) --- updated-dependencies: - dependency-name: rimraf dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix use of rimraf Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Beka Westberg <bwestberg@google.com>
This commit is contained in:
@@ -23,7 +23,7 @@ const clangFormatter = require('gulp-clang-format');
|
||||
const closureCompiler = require('google-closure-compiler').gulp();
|
||||
const closureDeps = require('google-closure-deps');
|
||||
const argv = require('yargs').argv;
|
||||
const rimraf = require('rimraf');
|
||||
const {rimraf} = require('rimraf');
|
||||
|
||||
const {BUILD_DIR, DEPS_FILE, RELEASE_DIR, TEST_DEPS_FILE, TSC_OUTPUT_DIR, TYPINGS_BUILD_DIR} = require('./config');
|
||||
const {getPackageJson} = require('./helper_tasks');
|
||||
@@ -712,12 +712,12 @@ function buildAdvancedCompilationTest() {
|
||||
/**
|
||||
* This task cleans the build directory (by deleting it).
|
||||
*/
|
||||
function cleanBuildDir(done) {
|
||||
function cleanBuildDir() {
|
||||
// Sanity check.
|
||||
if (BUILD_DIR === '.' || BUILD_DIR === '/') {
|
||||
throw new Error(`Refusing to rm -rf ${BUILD_DIR}`);
|
||||
return Promise.reject(`Refusing to rm -rf ${BUILD_DIR}`);
|
||||
}
|
||||
rimraf(BUILD_DIR, done);
|
||||
return rimraf(BUILD_DIR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user