vnxt 1.7.0 → 1.7.7

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/package.json +1 -1
  2. package/vnxt.js +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vnxt",
3
- "version": "1.7.0",
3
+ "version": "1.7.7",
4
4
  "description": "Version incrementation CLI tool with built in git commit, push and changelog generation",
5
5
  "main": "vnxt.js",
6
6
  "bin": {
package/vnxt.js CHANGED
@@ -9,7 +9,7 @@ const colors = {
9
9
  reset: '\x1b[0m',
10
10
  bright: '\x1b[1m',
11
11
  dim: '\x1b[2m',
12
-
12
+
13
13
  // Foreground colors
14
14
  red: '\x1b[31m',
15
15
  green: '\x1b[32m',
@@ -336,7 +336,7 @@ async function main() {
336
336
  // Create annotated tag
337
337
  log('šŸ·ļø Adding tag annotation...', 'cyan');
338
338
  const tagMessage = `Version ${newVersion}\n\n${message}`;
339
- execSync(`git tag -a v${newVersion} -m "${tagMessage}"`, {stdio: 'pipe'});
339
+ execSync(`git tag -a ${config.tagPrefix}${newVersion} -m "${tagMessage}"`, {stdio: 'pipe'});
340
340
 
341
341
  // GENERATE CHANGELOG
342
342
  if (generateChangelog) {
@@ -364,7 +364,7 @@ async function main() {
364
364
  // GENERATE RELEASE NOTES
365
365
  if (generateReleaseNotes) {
366
366
  log('šŸ“‹ Generating release notes...', 'cyan');
367
- const releaseNotes = `# Release v${newVersion}
367
+ const releaseNotes = `# Release ${config.tagPrefix}${newVersion}
368
368
 
369
369
  Released: ${new Date().toISOString().split('T')[0]}
370
370
 
@@ -380,7 +380,7 @@ npm install ${packageJson.name}@${newVersion}
380
380
  See [CHANGELOG.md](./CHANGELOG.md) for complete version history.
381
381
  `;
382
382
 
383
- const filename = `release-notes-v${newVersion}.md`;
383
+ const filename = `release-notes-${config.tagPrefix}${newVersion}.md`;
384
384
  fs.writeFileSync(filename, releaseNotes);
385
385
  log(` Created: ${filename}`);
386
386
  }
@@ -397,7 +397,7 @@ See [CHANGELOG.md](./CHANGELOG.md) for complete version history.
397
397
 
398
398
  log(`\nšŸ“¦ Version: ${oldVersion} → ${newVersion}`, 'green');
399
399
  log(`šŸ’¬ Message: ${message}`);
400
- log(`šŸ·ļø Tag: v${newVersion}`);
400
+ log(`šŸ·ļø Tag: ${config.tagPrefix}${newVersion}`);
401
401
  log(`🌿 Branch: ${branch}`);
402
402
 
403
403
  if (generateChangelog) {
@@ -494,4 +494,4 @@ Examples:
494
494
  }
495
495
 
496
496
  // Run main function
497
- main();
497
+ main();