@ngocsangairvds/vsaf 5.6.0 → 5.6.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngocsangairvds/vsaf",
3
- "version": "5.6.0",
3
+ "version": "5.6.1",
4
4
  "description": "logging step",
5
5
  "main": "packages/core/dist/index.js",
6
6
  "types": "packages/core/dist/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  // Bun bootstrap decision logic (pure) + orchestrator.
4
- // Runs under plain `node` during `npm install` (postinstall) CommonJS on purpose.
4
+ // Runs under plain `node` during `npm install` (postinstall) -> CommonJS on purpose.
5
5
 
6
6
  const os = require('os');
7
7
  const path = require('path');
@@ -61,11 +61,11 @@ function bunInstallPlan({ platform, hasBun, isCI, optOut, hasCurl, hasWget }) {
61
61
  /** Reminder that the current shell session has not picked up ~/.bun/bin yet. */
62
62
  function postInstallPathNote(platform, env) {
63
63
  if (platform === 'win32') {
64
- return ' Bun installed. Open a NEW terminal before using `vsaf`.';
64
+ return '[vsaf] Bun installed. Open a NEW terminal before using vsaf.';
65
65
  }
66
66
  const rc = String(env.SHELL || '').includes('zsh') ? '~/.zshrc' : '~/.bashrc';
67
- return ' Bun installed to ~/.bun/bin\n'
68
- + ` Open a NEW terminal (or run: source ${rc}) before using \`vsaf\`.`;
67
+ return '[vsaf] Bun installed to ~/.bun/bin\n'
68
+ + `[vsaf] Open a NEW terminal (or run: source ${rc}) before using vsaf.`;
69
69
  }
70
70
 
71
71
  /**
@@ -104,12 +104,12 @@ function maybeInstallBun({ platform, env, exists, probe, exec, log }) {
104
104
  if (plan.action === 'skip') return plan;
105
105
  if (plan.action === 'manual') { log(plan.instructions); return plan; }
106
106
 
107
- log('[vsaf] Bun not found installing via the official bun.sh installer');
107
+ log('[vsaf] Bun not found - installing via the official bun.sh installer...');
108
108
  try {
109
109
  exec(plan.command);
110
110
  log(postInstallPathNote(platform, env));
111
111
  } catch (e) {
112
- log('[vsaf] Bun auto-install failed install it manually:\n' + manualInstructions(platform));
112
+ log('[vsaf] Bun auto-install failed - install it manually:\n' + manualInstructions(platform));
113
113
  log('[vsaf] (reason: ' + (e && e.message ? e.message : String(e)) + ')');
114
114
  }
115
115
  return plan;