chore: fix duplicate preversion scripts
`prepublishOnly` now cleans all build artifacts
`preversion` does the same, except runs `sync-pkgs` also
MODIFY
package.json
package.json
"build:types": "tsc -b",
"clean": "run-s clean:*",
"clean:distfiles": "npx rimraf \"packages/*/build\"",
+ "clean:monorepo": "npx rimraf node_modules package-lock.json",
"clean:packages": "lerna clean -y && npx rimraf \"packages/*/package-lock.json\"",
"clean:types": "tsc -b --clean",
- "clean:monorepo": "npx rimraf node_modules package-lock.json",
+ "clean:artifacts": "run-s clean:distfiles clean:types",
"dev": "run-p dev:*",
"dev:distfiles": "lerna run --parallel --prefix --concurrency=8 dev",
"dev:types": "tsc -b --watch",
"lint:fix": "npm run lint -- --fix",
"precommit-lint": "lint-staged",
"precommit-msg": "echo 'Pre-commit checks...'",
- "prepublishOnly": "tsc -b --clean && npm run build",
- "preversion": "tsc -b --clean && npm run build",
+ "prepublishOnly": "run-s clean:artifacts build",
"reinstall": "npm run clean && npm install",
"start": "appium",
"sync-pkgs": "run-p sync-pkgs:*",
"test:test-support": "lerna run --scope=@appium/test-support test",
"uninstall-fake-driver": "npm start -- driver uninstall fake",
"upload": "gulp github-upload",
- "preversion": "npm run sync-pkgs && git add -A packages/appium/README.md packages/*/package.json",
+ "preversion": "run-s clean:artifacts build sync-pkgs && git add -A packages/appium/README.md packages/*/package.json",
"zip": "zip -qr ./appium.zip ./packages/appium",
"zip-and-upload": "run-s zip upload"
},

chore: fix duplicate preversion scripts

- `prepublishOnly` now cleans all build artifacts
- `preversion` does the same, except runs `sync-pkgs` also