@mkterswingman/yt-mcp 0.3.4 → 0.3.5
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 +1 -1
- package/scripts/postinstall-hint.mjs +15 -13
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Post-install: show
|
|
5
|
-
*
|
|
4
|
+
* Post-install: show setup hint for first-time users.
|
|
5
|
+
* Uses stderr because npm suppresses stdout from dependency postinstall scripts.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
@@ -16,14 +16,16 @@ if (existsSync(authFile)) {
|
|
|
16
16
|
process.exit(0);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
// npm suppresses stdout from postinstall — use stderr to ensure visibility
|
|
20
|
+
const msg = `
|
|
21
|
+
╔═══════════════════════════════════════════╗
|
|
22
|
+
║ ║
|
|
23
|
+
║ yt-mcp installed successfully! 🎉 ║
|
|
24
|
+
║ ║
|
|
25
|
+
║ Run this to get started: ║
|
|
26
|
+
║ ║
|
|
27
|
+
║ yt-mcp setup ║
|
|
28
|
+
║ ║
|
|
29
|
+
╚═══════════════════════════════════════════╝
|
|
30
|
+
`;
|
|
31
|
+
process.stderr.write(msg + "\n");
|