@k1e1n04/mav 0.1.1 → 0.1.2
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/README.md +21 -2
- package/package.json +1 -1
- package/scripts/postinstall.mjs +2 -2
package/README.md
CHANGED
|
@@ -31,14 +31,33 @@ brew tap k1e1n04/mav https://github.com/k1e1n04/mav.git
|
|
|
31
31
|
brew install mav
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
### npm
|
|
34
|
+
### npm
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
npm install -g @k1e1n04/mav
|
|
38
|
-
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Requires Xcode Command Line Tools (macOS) or `build-essential` (Linux) for the native `node-pty` module.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# macOS
|
|
44
|
+
xcode-select --install
|
|
45
|
+
|
|
46
|
+
# Ubuntu / Debian
|
|
47
|
+
sudo apt-get install -y build-essential python3
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### pnpm
|
|
51
|
+
|
|
52
|
+
pnpm v10+ blocks install scripts by default. An extra step is needed after install:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
39
55
|
pnpm add -g @k1e1n04/mav
|
|
56
|
+
pnpm approve-builds -g # select node-pty to allow its native build
|
|
40
57
|
```
|
|
41
58
|
|
|
59
|
+
> **Tip:** On macOS, Homebrew handles all of this automatically — use it if you prefer a simpler install.
|
|
60
|
+
|
|
42
61
|
### Build from Source
|
|
43
62
|
|
|
44
63
|
```bash
|
package/package.json
CHANGED
package/scripts/postinstall.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Rebuild node-pty's native binary if it wasn't built during install.
|
|
3
|
-
//
|
|
4
|
-
//
|
|
3
|
+
// Runs automatically when installed via npm.
|
|
4
|
+
// pnpm v10+ also blocks this script unless approved with `pnpm approve-builds -g`.
|
|
5
5
|
import { execSync } from 'node:child_process'
|
|
6
6
|
import { existsSync } from 'node:fs'
|
|
7
7
|
import { dirname } from 'node:path'
|