repowise 0.1.14 → 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 +5 -3
- package/scripts/postinstall.js +32 -0
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repowise",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AI-optimized codebase context generator",
|
|
6
6
|
"bin": {
|
|
7
7
|
"repowise": "dist/bin/repowise.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"dist"
|
|
10
|
+
"dist",
|
|
11
|
+
"scripts/postinstall.js"
|
|
11
12
|
],
|
|
12
13
|
"scripts": {
|
|
13
14
|
"build": "tsc",
|
|
14
15
|
"build:bundle": "tsup",
|
|
15
16
|
"lint": "eslint src/ bin/",
|
|
16
17
|
"test": "vitest run",
|
|
17
|
-
"type-check": "tsc --noEmit"
|
|
18
|
+
"type-check": "tsc --noEmit",
|
|
19
|
+
"postinstall": "node scripts/postinstall.js"
|
|
18
20
|
},
|
|
19
21
|
"dependencies": {
|
|
20
22
|
"chalk": "^5.4.0",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Lightweight postinstall banner — no dependencies, plain ANSI codes.
|
|
4
|
+
// Uses stderr because npm suppresses stdout from lifecycle scripts.
|
|
5
|
+
const version = process.env.npm_package_version || '';
|
|
6
|
+
|
|
7
|
+
const cyan = (s) => `\x1b[36m${s}\x1b[0m`;
|
|
8
|
+
const bold = (s) => `\x1b[1m${s}\x1b[0m`;
|
|
9
|
+
const dim = (s) => `\x1b[2m${s}\x1b[0m`;
|
|
10
|
+
const green = (s) => `\x1b[32m${s}\x1b[0m`;
|
|
11
|
+
|
|
12
|
+
const v = version ? ` v${version}` : '';
|
|
13
|
+
|
|
14
|
+
const line = (s) => process.stderr.write(s + '\n');
|
|
15
|
+
|
|
16
|
+
try {
|
|
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('');
|
|
30
|
+
} catch {
|
|
31
|
+
// Never fail installation on a cosmetic banner
|
|
32
|
+
}
|