chore: Import rimrafSync from appium-support
MODIFY
lib/basedriver/helpers.js
lib/basedriver/helpers.js
@@ -10,7 +10,7 @@ import asyncRequest from 'request-promise';
import LRU from 'lru-cache';
import AsyncLock from 'async-lock';
import sanitize from 'sanitize-filename';
-import rimraf from 'rimraf';
+
const ZIP_EXTS = ['.zip', '.ipa'];
const ZIP_MIME_TYPES = [
@@ -48,7 +48,7 @@ process.on('exit', () => {
for (const appPath of appPaths) {
try {
// Asynchronous calls are not supported in onExit handler
- rimraf.sync(appPath);
+ fs.rimrafSync(appPath);
} catch (e) {
logger.warn(e.message);
}

MODIFY
package.json
package.json
],
"dependencies": {
"@babel/runtime": "^7.0.0",
- "appium-support": "^2.33.1",
+ "appium-support": "^2.36.0",
"async-lock": "^1.0.0",
"asyncbox": "^2.3.1",
"bluebird": "^3.5.3",
"morgan": "^1.9.0",
"request": "^2.83.0",
"request-promise": "^4.2.2",
- "rimraf": "^3.0.0",
"sanitize-filename": "^1.6.1",
"serve-favicon": "^2.4.5",
"source-map-support": "^0.5.5",

chore: Import rimrafSync from appium-support (#376)