From d2b9a003c0e29a0766e3b6db2e1eacd93c5e1213 Mon Sep 17 00:00:00 2001 From: MrSmart00 Date: Tue, 14 Apr 2026 23:27:48 +0900 Subject: [PATCH 1/2] chore: switch worktree node_modules from symlink to pnpm install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit シンボリックリンクではiOSビルドが動かないため、 SessionStart hookでpnpm installを実行する方式に変更 Co-Authored-By: Claude Opus 4.6 (1M context) --- .claude/settings.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.claude/settings.json b/.claude/settings.json index a333b40..9c786a9 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,5 +1,18 @@ { "worktree": { - "symlinkDirectories": ["node_modules"] + "symlinkDirectories": [] + }, + "hooks": { + "SessionStart": [ + { + "hooks": [ + { + "type": "command", + "command": "pnpm install --frozen-lockfile", + "statusMessage": "Installing dependencies..." + } + ] + } + ] } } From af55175eaed05a57d36b95ee34da76806347860c Mon Sep 17 00:00:00 2001 From: MrSmart00 Date: Tue, 14 Apr 2026 23:37:32 +0900 Subject: [PATCH 2/2] chore: skip pnpm install when node_modules already exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit node_modulesが存在しない or シンボリックリンクの場合のみ実行するよう条件を追加 Co-Authored-By: Claude --- .claude/settings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index 9c786a9..0c4905b 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -8,8 +8,8 @@ "hooks": [ { "type": "command", - "command": "pnpm install --frozen-lockfile", - "statusMessage": "Installing dependencies..." + "command": "if [ ! -d node_modules ] || [ -L node_modules ]; then rm -f node_modules; pnpm install --frozen-lockfile; fi", + "statusMessage": "Checking dependencies..." } ] }