Remove rimraf.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-08-06 22:52:40 -07:00
parent 92260b0f97
commit 6fcd1ef0d5
3 changed files with 2 additions and 59 deletions

56
package-lock.json generated
View File

@@ -41,7 +41,6 @@
"playwright-core": "^1.41.0-alpha-jan-9-2024",
"pre-commit": "^1.2.2",
"prettier": "^3.0.3",
"rimraf": "^5.0.0",
"semver": "^7.3.5",
"stylelint": "^16.1.0",
"stylelint-config-standard": "^36.0.0",
@@ -9582,61 +9581,6 @@
"node": ">=0.10.0"
}
},
"node_modules/rimraf": {
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz",
"integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==",
"dev": true,
"dependencies": {
"glob": "^10.3.7"
},
"bin": {
"rimraf": "dist/esm/bin.mjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/rimraf/node_modules/glob": {
"version": "10.3.10",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz",
"integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==",
"dev": true,
"dependencies": {
"foreground-child": "^3.1.0",
"jackspeak": "^2.3.5",
"minimatch": "^9.0.1",
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0",
"path-scurry": "^1.10.1"
},
"bin": {
"glob": "dist/esm/bin.mjs"
},
"engines": {
"node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/rimraf/node_modules/minimatch": {
"version": "9.0.3",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",
"integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",
"dev": true,
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
"node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/roarr": {
"version": "2.15.4",
"resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",

View File

@@ -174,7 +174,6 @@
"playwright-core": "^1.41.0-alpha-jan-9-2024",
"pre-commit": "^1.2.2",
"prettier": "^3.0.3",
"rimraf": "^5.0.0",
"semver": "^7.3.5",
"stylelint": "^16.1.0",
"stylelint-config-standard": "^36.0.0",

View File

@@ -1,9 +1,9 @@
"use strict";
const fs = require("node:fs");
const path = require("node:path");
const process = require("node:process");
const {_electron} = require("playwright-core");
const rimraf = require("rimraf");
const testsPkg = require("./package.json");
@@ -58,5 +58,5 @@ function getAppDataDirectory() {
// Resets the test directory, containing domain.json, window-state.json, etc
function resetTestDataDirectory() {
const appDataDirectory = getAppDataDirectory();
rimraf.sync(appDataDirectory);
fs.rmSync(appDataDirectory, {force: true, recursive: true});
}