@lightupai/polaris 0.0.3 → 0.0.5
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/polaris +10 -2
- package/package.json +1 -1
package/bin/polaris
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# Polaris CLI wrapper
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
SCRIPT="$(realpath "$0" 2>/dev/null || readlink -f "$0" 2>/dev/null || echo "$0")"
|
|
4
|
+
DIR="$(cd "$(dirname "$SCRIPT")/.." && pwd)"
|
|
5
|
+
|
|
6
|
+
if command -v bun &>/dev/null; then
|
|
7
|
+
exec bun "$DIR/src/cli/cli.ts" "$@"
|
|
8
|
+
elif command -v bunx &>/dev/null; then
|
|
9
|
+
exec bunx bun "$DIR/src/cli/cli.ts" "$@"
|
|
10
|
+
else
|
|
11
|
+
exec npx --yes bun "$DIR/src/cli/cli.ts" "$@"
|
|
12
|
+
fi
|