chore(appium): renamed postinstall.js to autoinstall-extensions.js
...just so we're clear about what it does.  Added some more explanation
in docstrings.
MODIFY
package.json
package.json
"@appium/test-support": "file:packages/test-support",
"@appium/types": "file:packages/types",
"@appium/universal-xml-plugin": "file:packages/universal-xml-plugin",
- "appium": "file:packages/appium",
- "lru-cache": "7.9.0"
+ "appium": "file:packages/appium"
},
"devDependencies": {
"@appium/fake-plugin": "1.3.1",

MODIFY
packages/appium/package.json
packages/appium/package.json
"support.*",
"plugin.*",
"test.*",
- "scripts/postinstall.js",
+ "scripts/autoinstall-extensions.js",
"types"
],
"scripts": {
"dev:docs:en": "mkdocs serve -f ./docs/mkdocs-en.yml",
"dev:docs:ja": "mkdocs serve -f ./docs/mkdocs-ja.yml",
"fix": "npm run lint -- --fix",
- "postinstall": "node ./scripts/postinstall.js",
+ "postinstall": "node ./scripts/autoinstall-extensions.js",
"lint": "eslint -c ../../.eslintrc --ignore-path ../../.eslintignore .",
"prepare": "npm run build",
"publish:docs": "APPIUM_DOCS_PUBLISH=1 npm run build:docs",

RENAME
packages/appium/scripts/postinstall.js
packages/appium/scripts/autoinstall-extensions.js
/* eslint-disable no-console, promise/prefer-await-to-then */
+/**
+ * This script is intended to be run as a `postinstall` lifecycle script,
+ * and will automatically install extensions if requested by the user.
+ *
+ * If the current working directory is within a project which has `appium`
+ * as a dependency, this script does nothing; extensions must be managed
+ * via `npm` or another package manager.
+ *
+ * If `CI=1` is in the environment, this script will exit with a non-zero
+ * code upon failure (which will typically break a build). Otherwise, it
+ * will always exit with code 0, even if errors occur.
+ *
+ * @example
+ * `npm install -g appium --drivers=uiautomator2,xcuitest --plugins=images`
+ */
+
/** @type {import('../lib/cli/extension').runExtensionCommand} */
let runExtensionCommand;
/** @type {import('../lib/constants').DRIVER_TYPE} */

chore(appium): renamed postinstall.js to autoinstall-extensions.js

...just so we're clear about what it does.  Added some more explanation
in docstrings.