Skip to content

Commit b8fec33

Browse files
fix installation and load issues
1 parent 6d46193 commit b8fec33

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.prettierrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true
4+
}

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"build": "npx tsc",
99
"prettier": "prettier src --write --single-quote",
1010
"uninstall": "(appium plugin uninstall element-wait || exit 0)",
11-
"plugin:install": "appium plugin install --source=local $(pwd)",
12-
"plugin:installer": "npm run uninstall && npm run build && npm run plugin:install && appium server -ka 800 --use-plugins=element-wait -pa /wd/hub"
11+
"install-plugin": "npm run build && appium plugin install --source=local $(pwd)",
12+
"reinstall-plugin": "(appium plugin uninstall element-wait || exit 0) && npm run install-plugin"
1313
},
1414
"repository": {
1515
"type": "git",
@@ -32,6 +32,7 @@
3232
"homepage": "https://github.com/saikrishna321/appium-wait-plugin#readme",
3333
"dependencies": {
3434
"@appium/base-plugin": "^1.9.2",
35+
"@appium/support": "^2.55.2",
3536
"async-wait-until": "^2.0.12",
3637
"node-fetch": "^2.6.1"
3738
},

src/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { logger } from '@appium/support';
1+
const logger = require('@appium/support').logger;
22
const log = logger.getLogger('wait-plugin');
33
export default log;

0 commit comments

Comments
 (0)