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

This commit is contained in:
Lucas Nogueira
2021-10-01 10:39:09 -03:00
parent 40a15647aa
commit 3450902862

View File

@@ -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()
)