diff --git a/guides/writing-cross-platform-javascript.md b/guides/writing-cross-platform-javascript.md index 8148bc7d12fa..2d74278083cb 100644 --- a/guides/writing-cross-platform-javascript.md +++ b/guides/writing-cross-platform-javascript.md @@ -59,7 +59,7 @@ This will stop developers on Windows from running `yarn clean` unless they are s ```json { "devDependencies": { - "rimraf": "3.0.2", + "rimraf": "5.0.10" }, "scripts": { "clean": "rimraf '**/*.js'" diff --git a/npm/puppeteer/package.json b/npm/puppeteer/package.json index 7a8b0352b539..adb61b29fb8c 100644 --- a/npm/puppeteer/package.json +++ b/npm/puppeteer/package.json @@ -26,7 +26,7 @@ "chokidar": "^3.5.3", "express": "4.19.2", "mocha": "^9.2.2", - "rimraf": "^5.0.1", + "rimraf": "^5.0.10", "semantic-release": "22.0.12", "sinon": "^13.0.1", "sinon-chai": "^3.7.0", diff --git a/package.json b/package.json index c187589e19cc..26ea5fe33fee 100644 --- a/package.json +++ b/package.json @@ -115,7 +115,6 @@ "@types/react": "16.9.50", "@types/react-dom": "16.9.8", "@types/request-promise": "4.1.45", - "@types/rimraf": "^3.0.2", "@types/send": "^0.17.1", "@types/sinon-chai": "3.2.3", "@types/through2": "^2.0.36", @@ -187,7 +186,7 @@ "pluralize": "8.0.0", "print-arch": "1.0.0", "proxyquire": "2.1.3", - "rimraf": "3.0.2", + "rimraf": "5.0.10", "semantic-release": "22.0.12", "semantic-release-monorepo": "8.0.2", "semver": "7.5.3", diff --git a/packages/errors/package.json b/packages/errors/package.json index dce8429bab17..eecbeffad99b 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -34,7 +34,7 @@ "is-ci": "^3.0.1", "mocha": "7.0.1", "pngjs": "^6.0.0", - "rimraf": "3.0.2", + "rimraf": "5.0.10", "sinon": "7.5.0", "terminal-banner": "^1.1.0", "xvfb-maybe": "^0.2.1" diff --git a/packages/extension/gulpfile.ts b/packages/extension/gulpfile.ts index 12e99444ee65..ae0a25789308 100644 --- a/packages/extension/gulpfile.ts +++ b/packages/extension/gulpfile.ts @@ -1,5 +1,5 @@ import gulp from 'gulp' -import rimraf from 'rimraf' +import { rimraf } from 'rimraf' import { waitUntilIconsBuilt } from '../../scripts/ensure-icons' import cp from 'child_process' import * as path from 'path' @@ -12,8 +12,8 @@ async function cypressIcons () { return require('@packages/icons') } -const clean = (done) => { - rimraf('dist', done) +function clean (): Promise { + return rimraf('dist') } const manifest = (v: 'v2' | 'v3') => { diff --git a/packages/runner/package.json b/packages/runner/package.json index 50092e956ab7..cf36e9b04fc7 100644 --- a/packages/runner/package.json +++ b/packages/runner/package.json @@ -18,7 +18,7 @@ "babel-plugin-prismjs": "1.0.2", "bluebird": "3.5.3", "cross-env": "6.0.3", - "rimraf": "^5.0.1", + "rimraf": "^5.0.10", "webpack": "^5.88.2", "webpack-cli": "^5.1.4" }, diff --git a/scripts/gulp/tasks/gulpMakePackage.ts b/scripts/gulp/tasks/gulpMakePackage.ts index 3a2bdffc5db3..d692d23f6a0d 100644 --- a/scripts/gulp/tasks/gulpMakePackage.ts +++ b/scripts/gulp/tasks/gulpMakePackage.ts @@ -71,12 +71,12 @@ export async function makePackage () { files: ['src'], dependencies: {}, devDependencies: results.scaffoldTests ? { - 'rimraf': '3.0.2', + 'rimraf': '5.0.10', 'mocha': '7.0.1', 'chai': '4.2.0', '@packages/ts': '0.0.0-development', } : { - 'rimraf': '3.0.2', + 'rimraf': '5.0.10', '@packages/ts': '0.0.0-development', }, }, diff --git a/yarn.lock b/yarn.lock index 867d7ca17d4d..1f1a2d231728 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7917,14 +7917,6 @@ resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.2.tgz#ed279a64fa438bb69f2480eda44937912bb7480a" integrity sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow== -"@types/rimraf@^3.0.2": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@types/rimraf/-/rimraf-3.0.2.tgz#a63d175b331748e5220ad48c901d7bbf1f44eef8" - integrity sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ== - dependencies: - "@types/glob" "*" - "@types/node" "*" - "@types/semver@7.5.0": version "7.5.0" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.0.tgz#591c1ce3a702c45ee15f47a42ade72c2fd78978a" @@ -26963,6 +26955,13 @@ rimraf@3.0.2, rimraf@^3.0.2: dependencies: glob "^7.1.3" +rimraf@5.0.10, rimraf@^5.0.10, rimraf@^5.0.5: + version "5.0.10" + resolved "https://registry.npmmirror.com/rimraf/-/rimraf-5.0.10.tgz#23b9843d3dc92db71f96e1a2ce92e39fd2a8221c" + integrity sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ== + dependencies: + glob "^10.3.7" + rimraf@^4.4.1: version "4.4.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-4.4.1.tgz#bd33364f67021c5b79e93d7f4fa0568c7c21b755" @@ -26970,13 +26969,6 @@ rimraf@^4.4.1: dependencies: glob "^9.2.0" -rimraf@^5.0.1, rimraf@^5.0.5: - version "5.0.5" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.5.tgz#9be65d2d6e683447d2e9013da2bf451139a61ccf" - integrity sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A== - dependencies: - glob "^10.3.7" - ripemd160@^2.0.0, ripemd160@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c"