shellwise 0.1.4 → 0.1.6
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/setup.sh +6 -5
package/package.json
CHANGED
package/scripts/setup.sh
CHANGED
|
@@ -11,11 +11,12 @@ BOLD='\033[1m'
|
|
|
11
11
|
RESET='\033[0m'
|
|
12
12
|
|
|
13
13
|
# Detect if this is a local (not global) install
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
echo -e "
|
|
18
|
-
echo -e " ${
|
|
14
|
+
# npm adds node_modules/.bin to PATH during postinstall, so check the resolved path
|
|
15
|
+
SHELLWISE_PATH="$(command -v shellwise 2>/dev/null || true)"
|
|
16
|
+
if [[ -z "$SHELLWISE_PATH" ]] || [[ "$SHELLWISE_PATH" == *"/node_modules/.bin/"* ]]; then
|
|
17
|
+
echo -e "${YELLOW}${BOLD}[shellwise]${RESET} This is a CLI tool — install it globally:" >&2
|
|
18
|
+
echo -e " ${BOLD}bun install -g shellwise${RESET}" >&2
|
|
19
|
+
echo -e " ${DIM}or: npm install -g shellwise${RESET}" >&2
|
|
19
20
|
exit 0
|
|
20
21
|
fi
|
|
21
22
|
|