feat(fake-driver): use peer deps
BREAKING CHANGE:
This now requires a peer dependency on `appium`
MODIFY
packages/fake-driver/lib/commands/alert.js
packages/fake-driver/lib/commands/alert.js
-import {errors} from '@appium/base-driver';
+import {errors} from 'appium/driver';
let commands = {},
helpers = {},

MODIFY
packages/fake-driver/lib/commands/contexts.js
packages/fake-driver/lib/commands/contexts.js
import _ from 'lodash';
-import {errors} from '@appium/base-driver';
+import {errors} from 'appium/driver';
let commands = {},
helpers = {},

MODIFY
packages/fake-driver/lib/commands/element.js
packages/fake-driver/lib/commands/element.js
import _ from 'lodash';
-import {errors} from '@appium/base-driver';
+import {errors} from 'appium/driver';
let commands = {},
helpers = {},

MODIFY
packages/fake-driver/lib/commands/find.js
packages/fake-driver/lib/commands/find.js
import _ from 'lodash';
-import {errors} from '@appium/base-driver';
+import {errors} from 'appium/driver';
import {FakeElement} from '../fake-element';
let commands = {},

MODIFY
packages/fake-driver/lib/commands/general.js
packages/fake-driver/lib/commands/general.js
import _ from 'lodash';
-import {errors} from '@appium/base-driver';
+import {errors} from 'appium/driver';
let commands = {},
helpers = {},

MODIFY
packages/fake-driver/lib/driver.js
packages/fake-driver/lib/driver.js
import B from 'bluebird';
import _ from 'lodash';
-import {BaseDriver, errors} from '@appium/base-driver';
+import {BaseDriver, errors} from 'appium/driver';
import {FakeApp} from './fake-app';
import commands from './commands';

MODIFY
packages/fake-driver/lib/fake-app.js
packages/fake-driver/lib/fake-app.js
-import {fs} from '@appium/support';
+import {fs} from 'appium/support';
import {readFileSync} from 'fs';
import path from 'path';
import XMLDom from '@xmldom/xmldom';

MODIFY
packages/fake-driver/lib/logger.js
packages/fake-driver/lib/logger.js
-import {logger} from '@appium/support';
+import {logger} from 'appium/support';
const log = logger.getLogger('FakeDriver');

MODIFY
packages/fake-driver/lib/server.js
packages/fake-driver/lib/server.js
import log from './logger';
-import {server as baseServer, routeConfiguringFunction} from '@appium/base-driver';
+import {server as baseServer, routeConfiguringFunction} from 'appium/driver';
import {FakeDriver} from './driver';
async function startServer(port, hostname) {

MODIFY
packages/fake-driver/package.json
packages/fake-driver/package.json
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
},
"dependencies": {
- "@appium/base-driver": "file:../base-driver",
- "@appium/support": "file:../support",
"@babel/runtime": "7.18.2",
"@xmldom/xmldom": "0.8.2",
"asyncbox": "2.9.2",
"source-map-support": "0.5.21",
"xpath": "0.0.32"
},
+ "peerDependencies": {
+ "appium": "file:../appium"
+ },
"engines": {
"node": ">=12",
"npm": ">=6"

feat(fake-driver): use peer deps

BREAKING CHANGE:

This now requires a peer dependency on `appium`