node-power-user 1.0.14 → 1.0.16

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.
@@ -57,9 +57,28 @@ module.exports = async function (options) {
57
57
  multiline: false,
58
58
  });
59
59
 
60
- // Then, add, commit, and push changes
60
+ // Stage all changes first
61
+ await execute('git add .', {
62
+ log: false,
63
+ config: {cwd: repoRoot},
64
+ });
65
+
66
+ // Check if there are staged changes to commit
67
+ const statusResult = await execute('git status --porcelain', {
68
+ log: false,
69
+ config: {cwd: repoRoot},
70
+ });
71
+
72
+ const hasChanges = (statusResult.stdout || '').trim().length > 0;
73
+
74
+ if (!hasChanges) {
75
+ logger.log(logger.format.green('Already up to date - nothing to commit'));
76
+ return true;
77
+ }
78
+
79
+ // Commit and push changes
61
80
  logger.log('Committing and pushing changes...');
62
- const pushCommand = `git add . && git commit -m "${message}" && git push origin`;
81
+ const pushCommand = `git commit -m "${message}" && git push origin`;
63
82
 
64
83
  await execute(pushCommand, {
65
84
  log: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-power-user",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Easy tools for every Node.js developer!",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,58 +0,0 @@
1
- [debug] [2025-10-26T14:46:37.834Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
2
- [debug] [2025-10-26T14:46:37.835Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
3
- [debug] [2025-10-26T14:46:37.836Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
4
- [debug] [2025-10-26T14:46:37.837Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
5
- [debug] [2025-10-26T14:46:37.837Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
6
- [debug] [2025-10-26T14:46:37.845Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
7
- [debug] [2025-10-26T14:46:37.845Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
8
- [debug] [2025-10-26T14:46:37.837Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
9
- [debug] [2025-10-26T14:46:37.838Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
10
- [debug] [2025-10-26T14:46:37.838Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
11
- [debug] [2025-10-26T14:46:37.849Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
12
- [debug] [2025-10-26T14:46:37.849Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
13
- [debug] [2025-10-26T14:46:37.860Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
14
- [debug] [2025-10-26T14:46:37.861Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
15
- [debug] [2025-10-26T14:46:37.860Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
16
- [debug] [2025-10-26T14:46:37.861Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
17
- [debug] [2025-10-26T14:46:37.861Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
18
- [debug] [2025-10-26T14:46:37.863Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
19
- [debug] [2025-10-26T14:46:37.863Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
20
- [debug] [2025-10-26T14:46:37.864Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
21
- [debug] [2025-10-26T14:46:37.864Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
22
- [debug] [2025-10-26T14:46:37.861Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
23
- [debug] [2025-10-26T14:46:37.862Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
24
- [debug] [2025-10-26T14:46:37.862Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
25
- [debug] [2025-10-26T14:46:37.864Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
26
- [debug] [2025-10-26T14:46:37.864Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
27
- [debug] [2025-10-26T14:46:37.864Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
28
- [debug] [2025-10-26T14:46:37.864Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
29
- [debug] [2025-10-26T20:17:50.677Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
30
- [debug] [2025-10-26T20:17:50.679Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
31
- [debug] [2025-10-26T20:17:50.679Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
32
- [debug] [2025-10-26T20:17:50.679Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
33
- [debug] [2025-10-26T20:17:50.688Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
34
- [debug] [2025-10-26T20:17:50.688Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
35
- [debug] [2025-10-26T20:17:50.700Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
36
- [debug] [2025-10-26T20:17:50.700Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
37
- [debug] [2025-10-26T20:17:50.701Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
38
- [debug] [2025-10-26T20:17:50.701Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
39
- [debug] [2025-10-26T20:17:50.703Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
40
- [debug] [2025-10-26T20:17:50.703Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
41
- [debug] [2025-10-26T20:17:50.703Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
42
- [debug] [2025-10-26T20:17:50.703Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
43
- [debug] [2025-10-26T20:17:50.755Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
44
- [debug] [2025-10-26T20:17:50.757Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
45
- [debug] [2025-10-26T20:17:50.757Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
46
- [debug] [2025-10-26T20:17:50.758Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
47
- [debug] [2025-10-26T20:17:50.769Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
48
- [debug] [2025-10-26T20:17:50.769Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
49
- [debug] [2025-10-26T20:17:50.780Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
50
- [debug] [2025-10-26T20:17:50.780Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
51
- [debug] [2025-10-26T20:17:50.781Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
52
- [debug] [2025-10-26T20:17:50.781Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
53
- [debug] [2025-10-26T20:17:50.782Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
54
- [debug] [2025-10-26T20:17:50.782Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
55
- [debug] [2025-10-26T20:17:50.783Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
56
- [debug] [2025-10-26T20:17:50.783Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
57
- [debug] [2025-10-27T13:47:53.709Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
58
- [debug] [2025-10-27T13:47:53.716Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)