chore: add a script to sync LICENSE files across packages
This will be run before publish, and will copy the root `LICENSE` file to all packages, so that they appear in the published tarballs.
`packages/*/LICENSE` are ignored by Git, since they are redundant with the root `LICENSE` file.
MODIFY
.gitignore
.gitignore
@@ -61,4 +61,4 @@ appium.zip
packages/*/**/appium-config.schema.json
packages/types/src/appium-config.ts
packages/types/src/appium-config-schema.js
-
+packages/*/LICENSE

MODIFY
package.json
package.json
"sync-pkgs": "run-p sync-pkgs:*",
"sync-pkgs:appium-readme": "sync-monorepo-packages --force --no-package-json --packages=packages/appium README.md",
"sync-pkgs:common-fields": "sync-monorepo-packages --fields=author,license,bugs,homepage,engines",
- "sync-pkgs:keywords": "sync-monorepo-packages --field=keywords --packages=\"packages/*\" --packages=\"!packages/eslint-config-appium\"",
+ "sync-pkgs:keywords": "sync-monorepo-packages --field=keywords --packages=\"packages/*\" --packages=\"!packages/eslint-config-appium\" --packages=\"!packages/types\"",
+ "sync-pkgs:license": "sync-monorepo-packages --force --no-package-json LICENSE",
"pretest": "npm run build",
"test": "lerna run test",
"posttest": "npm run lint",

chore: add a script to sync LICENSE files across packages

This will be run before publish, and will copy the root `LICENSE` file to all packages, so that they appear in the published tarballs.

`packages/*/LICENSE` are ignored by Git, since they are redundant with the root `LICENSE` file.