@portel/photon 1.17.1 → 1.17.2
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/photon +8 -2
- package/package.json +1 -1
package/bin/photon
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
# Runtime-agnostic launcher — works with bun, node, or tsx
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
# Resolve symlinks to find the actual package directory
|
|
4
|
+
SELF="$0"
|
|
5
|
+
while [ -L "$SELF" ]; do
|
|
6
|
+
DIR="$(cd "$(dirname "$SELF")" && pwd)"
|
|
7
|
+
SELF="$(readlink "$SELF")"
|
|
8
|
+
case "$SELF" in /*) ;; *) SELF="$DIR/$SELF" ;; esac
|
|
9
|
+
done
|
|
10
|
+
CLI="$(cd "$(dirname "$SELF")/.." && pwd)/dist/cli.js"
|
|
5
11
|
|
|
6
12
|
if command -v bun >/dev/null 2>&1; then
|
|
7
13
|
exec bun "$CLI" "$@"
|
package/package.json
CHANGED