@claude-view/plugin 0.20.1 → 0.22.0
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/hooks/start-server.sh +3 -2
- package/package.json +1 -1
package/hooks/start-server.sh
CHANGED
|
@@ -16,12 +16,13 @@ fi
|
|
|
16
16
|
# Locate npx — version managers (nvm, volta, fnm, asdf) put it outside system PATH.
|
|
17
17
|
# Claude Code hooks run with limited env, so we search common locations.
|
|
18
18
|
find_npx() {
|
|
19
|
-
# 1. Already in PATH?
|
|
19
|
+
# 1. Already in PATH? (POSIX standard — works everywhere)
|
|
20
20
|
command -v npx 2>/dev/null && return
|
|
21
|
-
# 2.
|
|
21
|
+
# 2. Version manager locations (universal first, macOS-specific last)
|
|
22
22
|
for candidate in \
|
|
23
23
|
"${HOME}/.volta/bin/npx" \
|
|
24
24
|
"${HOME}/.local/share/fnm/aliases/default/bin/npx" \
|
|
25
|
+
"${HOME}/.local/bin/npx" \
|
|
25
26
|
"/usr/local/bin/npx" \
|
|
26
27
|
"/opt/homebrew/bin/npx"; do
|
|
27
28
|
[ -x "$candidate" ] && echo "$candidate" && return
|
package/package.json
CHANGED