@@ -22,16 +22,21 @@ const DEFAULT_PKG_JSON_PATTERNS = [
2222] ;
2323
2424/**
25- * This script ensures that all "dependencies" in package JSONs use the same versions of dependencies.
26- * It also checks that all versions are pinned, and they don't use the caret operator "^".
25+ * This script ensures that "dependencies" and "devDependencies" in package JSONs which match
26+ * passed (or default) glob patterns use consistent dependencies versions. It also checks versions
27+ * available on npm, bumps and pins a set version for dependencies using the "^" range operator.
2728 *
2829 * @param {object } options
2930 * @param {string } options.cwd
30- * @param {boolean } [options.fix=false] Whether the script should automatically fix the errors.
31- * @param {boolean } [options.allowRanges=true] Whether the caret operator "^" is allowed.
32- * @param {function } [options.devDependenciesFilter]
33- * @param {Array.<string> } [options.pkgJsonPatterns]
34- * @param {object } [options.versionExceptions]
31+ * @param {boolean } [options.fix=false] Whether the script should automatically fix the errors instead of reporting them.
32+ * @param {boolean } [options.allowRanges=false] It prevents dependencies using the "^" range operator from being bumped to
33+ * latest version from npm matching them. Instead, they are bumped to highest version between them.
34+ * @param {function } [options.devDependenciesFilter] Function that defines which "devDependencies" should be modified.
35+ * All are modified by default
36+ * @param {Array.<string> } [options.pkgJsonPatterns] Array of glob patterns to find `package.json` files to modify.
37+ * By default, it modifies root `package.json` and `packages/*\/package.json` files.
38+ * @param {object } [options.versionExceptions] Allows setting `allowRanges` for packages defined as keys of this object,
39+ * instead of globally.
3540 */
3641export default async function checkVersionMatch ( {
3742 cwd,
0 commit comments