repowise 0.1.15 → 0.1.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.
- package/package.json +1 -1
- package/scripts/postinstall.js +17 -14
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// Lightweight postinstall banner — no dependencies, plain ANSI codes
|
|
3
|
+
// Lightweight postinstall banner — no dependencies, plain ANSI codes.
|
|
4
|
+
// Uses stderr because npm suppresses stdout from lifecycle scripts.
|
|
4
5
|
const version = process.env.npm_package_version || '';
|
|
5
6
|
|
|
6
7
|
const cyan = (s) => `\x1b[36m${s}\x1b[0m`;
|
|
@@ -10,20 +11,22 @@ const green = (s) => `\x1b[32m${s}\x1b[0m`;
|
|
|
10
11
|
|
|
11
12
|
const v = version ? ` v${version}` : '';
|
|
12
13
|
|
|
14
|
+
const line = (s) => process.stderr.write(s + '\n');
|
|
15
|
+
|
|
13
16
|
try {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
line('');
|
|
18
|
+
line(cyan(' ╭─────────────────────────────────────────╮'));
|
|
19
|
+
line(cyan(' │ │'));
|
|
20
|
+
line(cyan(' │ ') + bold(`RepoWise${v} installed`) + green(' ✓') + cyan(' │'));
|
|
21
|
+
line(cyan(' │ │'));
|
|
22
|
+
line(cyan(' │ ') + dim('Get started:') + cyan(' │'));
|
|
23
|
+
line(cyan(' │ $ ') + bold('repowise create') + cyan(' │'));
|
|
24
|
+
line(cyan(' │ │'));
|
|
25
|
+
line(cyan(' │ ') + dim('Thank you for using RepoWise!') + cyan(' │'));
|
|
26
|
+
line(cyan(' │ ') + dim('https://repowise.ai') + cyan(' │'));
|
|
27
|
+
line(cyan(' │ │'));
|
|
28
|
+
line(cyan(' ╰─────────────────────────────────────────╯'));
|
|
29
|
+
line('');
|
|
27
30
|
} catch {
|
|
28
31
|
// Never fail installation on a cosmetic banner
|
|
29
32
|
}
|