diff --git a/packages/nuxi/package.json b/packages/nuxi/package.json index 88ba18b553..cf6d87e005 100644 --- a/packages/nuxi/package.json +++ b/packages/nuxi/package.json @@ -21,7 +21,6 @@ "@nuxt/schema": "3.0.0", "@types/clear": "^0", "@types/mri": "^1.1.1", - "@types/rimraf": "^3", "@types/semver": "^7", "c12": "^0.2.5", "chokidar": "^3.5.3", @@ -40,7 +39,6 @@ "pathe": "^0.2.0", "perfect-debounce": "^0.1.3", "pkg-types": "^0.3.2", - "rimraf": "^3.0.2", "scule": "^0.2.1", "semver": "^7.3.7", "superb": "^4.0.0", diff --git a/packages/nuxi/src/utils/fs.ts b/packages/nuxi/src/utils/fs.ts index eaa92740ea..83efd90330 100644 --- a/packages/nuxi/src/utils/fs.ts +++ b/packages/nuxi/src/utils/fs.ts @@ -1,6 +1,4 @@ import { promises as fsp } from 'fs' -import { promisify } from 'util' -import rimraf from 'rimraf' import { dirname } from 'pathe' // Check if a file exists @@ -14,7 +12,7 @@ export async function exists (path: string) { } export async function clearDir (path: string) { - await promisify(rimraf)(path) + await fsp.rm(path, { recursive: true, force: true }) await fsp.mkdir(path, { recursive: true }) } diff --git a/yarn.lock b/yarn.lock index 0c2639bef3..8e444efa92 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4124,16 +4124,6 @@ __metadata: languageName: node linkType: hard -"@types/glob@npm:*": - version: 7.2.0 - resolution: "@types/glob@npm:7.2.0" - dependencies: - "@types/minimatch": "*" - "@types/node": "*" - checksum: 6ae717fedfdfdad25f3d5a568323926c64f52ef35897bcac8aca8e19bc50c0bd84630bbd063e5d52078b2137d8e7d3c26eabebd1a2f03ff350fff8a91e79fc19 - languageName: node - linkType: hard - "@types/hash-sum@npm:^1.0.0": version: 1.0.0 resolution: "@types/hash-sum@npm:1.0.0" @@ -4214,7 +4204,7 @@ __metadata: languageName: node linkType: hard -"@types/minimatch@npm:*, @types/minimatch@npm:^3.0.3": +"@types/minimatch@npm:^3.0.3": version: 3.0.5 resolution: "@types/minimatch@npm:3.0.5" checksum: c41d136f67231c3131cf1d4ca0b06687f4a322918a3a5adddc87ce90ed9dbd175a3610adee36b106ae68c0b92c637c35e02b58c8a56c424f71d30993ea220b92 @@ -4369,16 +4359,6 @@ __metadata: languageName: node linkType: hard -"@types/rimraf@npm:^3": - version: 3.0.2 - resolution: "@types/rimraf@npm:3.0.2" - dependencies: - "@types/glob": "*" - "@types/node": "*" - checksum: b47fa302f46434cba704d20465861ad250df79467d3d289f9d6490d3aeeb41e8cb32dd80bd1a8fd833d1e185ac719fbf9be12e05ad9ce9be094d8ee8f1405347 - languageName: node - linkType: hard - "@types/sass-loader@npm:8.0.1": version: 8.0.1 resolution: "@types/sass-loader@npm:8.0.1" @@ -15193,7 +15173,6 @@ __metadata: "@nuxt/schema": 3.0.0 "@types/clear": ^0 "@types/mri": ^1.1.1 - "@types/rimraf": ^3 "@types/semver": ^7 c12: ^0.2.5 chokidar: ^3.5.3 @@ -15213,7 +15192,6 @@ __metadata: pathe: ^0.2.0 perfect-debounce: ^0.1.3 pkg-types: ^0.3.2 - rimraf: ^3.0.2 scule: ^0.2.1 semver: ^7.3.7 superb: ^4.0.0