jun-claude-code 0.3.0 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jun-claude-code",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Claude Code configuration template - copy .claude settings to your project",
5
5
  "main": "dist/index.js",
6
6
  "bin": "dist/cli.js",
@@ -22,7 +22,9 @@ _hook_dedup_check() {
22
22
  if [ "$self_dir" = "$global_dir" ]; then
23
23
  # project-level 동일 hook이 존재하면 → global은 skip
24
24
  local project_hook
25
- project_hook="$(pwd)/.claude/hooks/$hook_name"
25
+ local project_root
26
+ project_root="$(git rev-parse --show-toplevel 2>/dev/null)"
27
+ project_hook="${project_root:-.}/.claude/hooks/$hook_name"
26
28
  if [ -f "$project_hook" ]; then
27
29
  return 1 # global yields to project → skip
28
30
  fi
@@ -7,7 +7,8 @@
7
7
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
8
  CLAUDE_DIR="$(dirname "$SCRIPT_DIR")"
9
9
  GLOBAL_CLAUDE_DIR="$HOME/.claude"
10
- PROJECT_CLAUDE_DIR="$(pwd)/.claude"
10
+ PROJECT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)"
11
+ PROJECT_CLAUDE_DIR="${PROJECT_ROOT:-.}/.claude"
11
12
 
12
13
  # Dedup: project 우선, global은 project 버전 존재 시 양보
13
14
  if [ -f "$SCRIPT_DIR/_dedup.sh" ]; then
@@ -7,7 +7,8 @@
7
7
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
8
  CLAUDE_DIR="$(dirname "$SCRIPT_DIR")"
9
9
  GLOBAL_CLAUDE_DIR="$HOME/.claude"
10
- PROJECT_CLAUDE_DIR="$(pwd)/.claude"
10
+ PROJECT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)"
11
+ PROJECT_CLAUDE_DIR="${PROJECT_ROOT:-.}/.claude"
11
12
 
12
13
  # Dedup: project 우선, global은 project 버전 존재 시 양보
13
14
  if [ -f "$SCRIPT_DIR/_dedup.sh" ]; then
@@ -7,7 +7,8 @@
7
7
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
8
  CLAUDE_DIR="$(dirname "$SCRIPT_DIR")"
9
9
  GLOBAL_CLAUDE_DIR="$HOME/.claude"
10
- PROJECT_CLAUDE_DIR="$(pwd)/.claude"
10
+ PROJECT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)"
11
+ PROJECT_CLAUDE_DIR="${PROJECT_ROOT:-.}/.claude"
11
12
 
12
13
  # Dedup: project 우선, global은 project 버전 존재 시 양보
13
14
  if [ -f "$SCRIPT_DIR/_dedup.sh" ]; then