niahere 0.2.3 → 0.2.4
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/bin/nia +11 -1
- package/package.json +1 -1
package/bin/nia
CHANGED
|
@@ -19,4 +19,14 @@ if ! command -v bun >/dev/null 2>&1; then
|
|
|
19
19
|
exit 1
|
|
20
20
|
fi
|
|
21
21
|
fi
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
# Resolve symlink to find the actual package directory
|
|
24
|
+
SCRIPT="$0"
|
|
25
|
+
while [ -L "$SCRIPT" ]; do
|
|
26
|
+
DIR="$(cd "$(dirname "$SCRIPT")" && pwd)"
|
|
27
|
+
SCRIPT="$(readlink "$SCRIPT")"
|
|
28
|
+
case "$SCRIPT" in /*) ;; *) SCRIPT="$DIR/$SCRIPT" ;; esac
|
|
29
|
+
done
|
|
30
|
+
PACKAGE_DIR="$(cd "$(dirname "$SCRIPT")/.." && pwd)"
|
|
31
|
+
|
|
32
|
+
exec bun "$PACKAGE_DIR/src/cli/index.ts" "$@"
|
package/package.json
CHANGED