Kaynağa Gözat

Fix dry run logic in publish script

Jeremy Tuloup 4 yıl önce
ebeveyn
işleme
f35052628a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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}`);