fix: module/file resolution issues
MODIFY
packages/eslint-config-appium/package.json
packages/eslint-config-appium/package.json
"author": "appium",
"license": "Apache-2.0",
"dependencies": {
- "@babel/core": "^7.21.1",
- "@babel/eslint-parser": "^7.12.1"
- },
- "peerDependencies": {
+ "@babel/core": "^7.12.1",
+ "@babel/eslint-parser": "^7.12.1",
"eslint": "^7.16.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-mocha": "^8.0.0",

MODIFY
packages/gulp-plugins/package.json
packages/gulp-plugins/package.json
"del": "^6.0.0",
"eslint": "^7.7.0",
"@appium/eslint-config-appium": "^4.0.1",
- "eslint-plugin-import": "^2.2.0",
- "eslint-plugin-mocha": "^8.0.0",
- "eslint-plugin-promise": "^5.1.0",
"fancy-log": "^1.3.2",
"find-root": "^1.1.0",
"form-data": "^4.0.0",
"glob": "^7.1.3",
"globby": "^11.0.0",
- "gulp": "^4.0.0",
"gulp-babel": "^8.0.0",
"gulp-debug": "^4.0.0",
"gulp-eslint": "^6.0.0",

MODIFY
packages/gulp-plugins/test/transpile-specs.js
packages/gulp-plugins/test/transpile-specs.js
@@ -7,11 +7,12 @@ import fs from 'fs';
import _ from 'lodash';
import log from 'fancy-log';
-
chai.should();
-const GULP = './node_modules/.bin/gulp';
-const MOCHA = './node_modules/.bin/mocha';
+// XXX: this behavior is unsupported by Node.js (but is supported by Babel).
+// fix if dropping babel
+const GULP = require.resolve('gulp/bin/gulp');
+const MOCHA = require.resolve('mocha/bin/mocha');
const readFile = B.promisify(fs.readFile);

fix: module/file resolution issues