node-power-user 1.0.16 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,9 +30,9 @@ module.exports = async function (options) {
30
30
  });
31
31
 
32
32
  // Check if there were any changes pulled
33
- const pullOutput = pullResult.stdout || '';
33
+ const pullOutput = pullResult || '';
34
34
  if (pullOutput.includes('Already up to date') || pullOutput.includes('Already up-to-date')) {
35
- logger.log('Already up to date - no changes pulled');
35
+ logger.log(logger.format.green('Already up to date - no changes pulled'));
36
36
  } else {
37
37
  // Try to extract the number of files changed
38
38
  const filesChangedMatch = pullOutput.match(/(\d+) file[s]? changed/);
@@ -69,7 +69,7 @@ module.exports = async function (options) {
69
69
  config: {cwd: repoRoot},
70
70
  });
71
71
 
72
- const hasChanges = (statusResult.stdout || '').trim().length > 0;
72
+ const hasChanges = (statusResult || '').trim().length > 0;
73
73
 
74
74
  if (!hasChanges) {
75
75
  logger.log(logger.format.green('Already up to date - nothing to commit'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-power-user",
3
- "version": "1.0.16",
3
+ "version": "1.0.19",
4
4
  "description": "Easy tools for every Node.js developer!",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {