Jason Grout преди 6 години
родител
ревизия
77f1046eff
променени са 1 файла, в които са добавени 11 реда и са изтрити 5 реда
  1. 11 5
      buildutils/src/update-dependency.ts

+ 11 - 5
buildutils/src/update-dependency.ts

@@ -186,9 +186,14 @@ Examples
 
       update-dependency webpack ^4.0.0
 
-  Update all packages to the latest version, with a caret:
+  Update all packages to the latest version, with a caret.
+  Only update if the update is substantial:
 
-      update-dependency --regex '.*' ^latest
+      update-dependency --minimal --regex '.*' ^latest
+
+  Print the log of the above without actually making any changes.
+
+  update-dependency --dry-run --minimal --regex '.*' ^latest
 
   Update all packages starting with '@jupyterlab/' to the version
   the 'latest' tag currently points to, with a caret range:
@@ -196,10 +201,11 @@ Examples
       update-dependency --regex '^@jupyterlab/' ^latest
 
   Update all packages starting with '@jupyterlab/' in all lerna
-  workspaces and the root package.json to whatever version the
-  'next' tag for each package currently points to:
+  workspaces and the root package.json to whatever version the 'next'
+  tag for each package currently points to (with a caret tag).
+  Update the version range only if the change is substantial.
 
-      update-dependency --lerna --regex '^@jupyterlab/' next
+      update-dependency --lerna --regex --minimal '^@jupyterlab/' ^next
 `);
 });
 commander.parse(process.argv);