feat(universal-xml-plugin): use peer deps
BREAKING CHANGE:
`@appium/universal-xml-plugin` now expects to be installed alongside `appium`.
# Conflicts:
#	packages/universal-xml-plugin/lib/logger.js
#	packages/universal-xml-plugin/lib/plugin.js
#	packages/universal-xml-plugin/test/unit/plugin.spec.js
# Conflicts:
#	packages/universal-xml-plugin/test/unit/plugin.spec.js
MODIFY
packages/universal-xml-plugin/lib/logger.js
packages/universal-xml-plugin/lib/logger.js
-import {logger} from '@appium/support';
+import {logger} from 'appium/support';
const log = logger.getLogger('UniversalXMLPlugin');
export default log;

MODIFY
packages/universal-xml-plugin/lib/plugin.js
packages/universal-xml-plugin/lib/plugin.js
/* eslint-disable no-case-declarations */
-import BasePlugin from '@appium/base-plugin';
-import {errors} from '@appium/base-driver';
+import BasePlugin from 'appium/plugin';
+import {errors} from 'appium/driver';
import {transformSourceXml} from './source';
import {transformQuery} from './xpath';
import log from './logger';

MODIFY
packages/universal-xml-plugin/package.json
packages/universal-xml-plugin/package.json
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
},
"dependencies": {
- "@appium/base-driver": "file:../base-driver",
- "@appium/base-plugin": "file:../base-plugin",
"fast-xml-parser": "3.21.1",
"xmldom": "0.6.0",
"xpath": "0.0.32"
},
+ "peerDependencies": {
+ "appium": "^2.0.0-beta.35"
+ },
"appium": {
"pluginName": "universal-xml",
"mainClass": "UniversalXMLPlugin"

MODIFY
packages/universal-xml-plugin/test/unit/plugin.spec.js
packages/universal-xml-plugin/test/unit/plugin.spec.js
import UniversalXMLPlugin from '../../lib/plugin';
-import BaseDriver from '@appium/base-driver';
+import BaseDriver from 'appium/driver';
import {XML_IOS, XML_ANDROID, XML_IOS_TRANSFORMED, XML_ANDROID_TRANSFORMED} from '../fixtures';
import {runQuery, getNodeAttrVal} from '../../lib/xpath';

MODIFY
packages/universal-xml-plugin/tsconfig.json
packages/universal-xml-plugin/tsconfig.json
{
"compilerOptions": {
- "outDir": "./build",
- "paths": {
- "@appium/base-plugin": ["../base-plugin"],
- "@appium/base-driver": ["../base-driver"]
- }
- },
- "extends": "../../config/tsconfig.base.json",
- "include": ["lib"],
- "references": [
- {
- "path": "../base-plugin"
+ "outDir": "build"
},
- {
- "path": "../base-driver"
- }
- ]
+ "extends": "../../config/tsconfig.plugin.json",
+ "include": ["lib"]
}

feat(universal-xml-plugin): use peer deps

BREAKING CHANGE:

`@appium/universal-xml-plugin` now expects to be installed alongside `appium`.

# Conflicts:
#	packages/universal-xml-plugin/lib/logger.js
#	packages/universal-xml-plugin/lib/plugin.js
#	packages/universal-xml-plugin/test/unit/plugin.spec.js

# Conflicts:
#	packages/universal-xml-plugin/test/unit/plugin.spec.js