Просмотр исходного кода

fix(cli.js): do not run dependency updater on `init plugin` command

Lucas Nogueira 3 лет назад
Родитель
Сommit
3450902862
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      tooling/cli.js/bin/tauri.js

+ 4 - 1
tooling/cli.js/bin/tauri.js

@@ -81,7 +81,10 @@ ${chalk.yellow('Options')}
       )
     ).promise
       .then(() => {
-        if (command === 'init' && !process.argv.some((arg) => arg === '--ci')) {
+        if (
+          command === 'init' &&
+          !process.argv.some((arg) => arg === '--ci' || arg === 'plugin')
+        ) {
           return import('../dist/api/dependency-manager.js').then(
             ({ installDependencies }) => installDependencies()
           )