@bobfrankston/npmglobalize 1.0.22 → 1.0.23

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.
Files changed (2) hide show
  1. package/lib.js +22 -0
  2. package/package.json +1 -1
package/lib.js CHANGED
@@ -1308,6 +1308,28 @@ export async function globalize(cwd, options = {}) {
1308
1308
  }
1309
1309
  catch (error) {
1310
1310
  console.error(colors.red('ERROR: Version bump failed:'), error.message);
1311
+ // Show additional error details if available
1312
+ if (error.stderr || error.stdout || error.code) {
1313
+ if (error.stderr)
1314
+ console.error(' stderr:', error.stderr);
1315
+ if (error.stdout)
1316
+ console.error(' stdout:', error.stdout);
1317
+ if (error.code)
1318
+ console.error(' exit code:', error.code);
1319
+ }
1320
+ // Show the full error stack in verbose mode
1321
+ if (verbose && error.stack) {
1322
+ console.error(' Stack trace:', error.stack);
1323
+ }
1324
+ // Try to provide more context
1325
+ if (error.message?.includes('unknown git error')) {
1326
+ console.error(colors.yellow('\nPossible causes:'));
1327
+ console.error(' • Git hooks (pre-commit, commit-msg) might be failing');
1328
+ console.error(' • GPG signing might be required but not configured');
1329
+ console.error(' • Git config issues (user.name, user.email)');
1330
+ console.error(' • Disk space or permissions issues');
1331
+ console.error(colors.yellow('\nTry running with --verbose or check git status manually'));
1332
+ }
1311
1333
  if (!force) {
1312
1334
  return false;
1313
1335
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/npmglobalize",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Transform file: dependencies to npm versions for publishing",
5
5
  "main": "index.js",
6
6
  "type": "module",