Explorar o código

Fix dry run logic in publish script

Jeremy Tuloup %!s(int64=4) %!d(string=hai) anos
pai
achega
f35052628a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      buildutils/src/publish.ts

+ 1 - 1
buildutils/src/publish.ts

@@ -46,7 +46,7 @@ commander
     const cmds = await Promise.all(paths.map(handlePackage));
     cmds.forEach(cmdList => {
       cmdList.forEach(cmd => {
-        if (options.dryRun) {
+        if (!options.dryRun) {
           utils.run(cmd);
         } else {
           throw new Error(`Tag is out of sync: ${cmd}`);