@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.
Files changed (2) hide show
  1. package/bin/polaris +10 -2
  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
- DIR="$(cd "$(dirname "$0")/.." && pwd)"
4
- exec npx bun "$DIR/src/cli/cli.ts" "$@"
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightupai/polaris",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "polaris": "bin/polaris"