@celilo/cli 0.1.0 → 0.1.1

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/celilo +9 -3
  2. package/package.json +1 -1
package/bin/celilo CHANGED
@@ -9,8 +9,14 @@ if ! command -v bun &> /dev/null; then
9
9
  exit 1
10
10
  fi
11
11
 
12
- # Resolve the CLI entry point relative to this script
13
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
14
- CLI_SCRIPT="$SCRIPT_DIR/../src/cli/index.ts"
12
+ # Resolve symlinks to find the actual package directory
13
+ SOURCE="${BASH_SOURCE[0]}"
14
+ while [ -L "$SOURCE" ]; do
15
+ DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
16
+ SOURCE="$(readlink "$SOURCE")"
17
+ [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
18
+ done
19
+ SCRIPT_DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
15
20
 
21
+ CLI_SCRIPT="$SCRIPT_DIR/../src/cli/index.ts"
16
22
  exec bun run "$CLI_SCRIPT" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celilo/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Celilo — home lab orchestration CLI",
5
5
  "type": "module",
6
6
  "bin": {