From 102c01f723c98f0a09f87c4e73301554193a75f3 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 9 Jan 2021 00:59:20 -0500 Subject: [PATCH] checkPlugin: Move log messages where they make more sense --- bin/plugins/checkPlugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/plugins/checkPlugin.js b/bin/plugins/checkPlugin.js index 3473cb184..060d1e2ba 100755 --- a/bin/plugins/checkPlugin.js +++ b/bin/plugins/checkPlugin.js @@ -433,9 +433,9 @@ fs.readdir(pluginPath, (err, rootFiles) => { // linting begins try { + console.log('Linting...'); const lintCmd = autoFix ? 'npx eslint --fix .' : 'npx eslint'; execSync(lintCmd); - console.log('Linting...'); if (autoFix) { // todo: if npm run lint doesn't do anything no need for... hasAutoFixed = true; @@ -447,7 +447,6 @@ fs.readdir(pluginPath, (err, rootFiles) => { // linting ends. if (hasAutoFixed) { - console.log('Fixes applied, please check git diff then run the following command:\n\n'); // bump npm Version const cmd = [ 'git rm -rf node_modules --ignore-unmatch', @@ -460,6 +459,7 @@ fs.readdir(pluginPath, (err, rootFiles) => { console.log('Attempting autocommit and auto publish to npm'); execSync(cmd); } else { + console.log('Fixes applied, please check git diff then run the following command:'); console.log(`(cd node_modules/${pluginName} && ${cmd})`); } }