configure-precommit 1.0.1 → 1.0.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.
@@ -15,8 +15,14 @@ YELLOW='\033[0;33m'
15
15
  CYAN='\033[0;36m'
16
16
  NC='\033[0m'
17
17
 
18
- # Get the directory where this script is located
19
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
18
+ # Get the directory where this script is located (resolving symlinks)
19
+ SOURCE="${BASH_SOURCE[0]}"
20
+ while [ -L "$SOURCE" ]; do
21
+ DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
22
+ SOURCE="$(readlink "$SOURCE")"
23
+ [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
24
+ done
25
+ SCRIPT_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
20
26
  PACKAGE_ROOT="$(dirname "$SCRIPT_DIR")"
21
27
 
22
28
  # Version from package.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "configure-precommit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Agentic pre-commit setup - automatically configures pre-commit hooks for any repository using AI",
5
5
  "keywords": [
6
6
  "pre-commit",