Skip to content

Commit fd06637

Browse files
authored
Merge pull request #4 from devitools/claude/setup-dev-environment-kUJe9
2 parents a3d9a9e + 5e816b0 commit fd06637

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

.claude/hooks/session-start.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# Only run in remote (Claude Code on the web) environments
5+
if [ "${CLAUDE_CODE_REMOTE:-}" != "true" ]; then
6+
exit 0
7+
fi
8+
9+
# Run asynchronously (in background while session starts)
10+
echo '{"async": true, "asyncTimeout": 300000}'
11+
12+
cd "$CLAUDE_PROJECT_DIR"
13+
14+
# Install all workspace dependencies
15+
pnpm install
16+
17+
# Build all packages (downstream packages depend on upstream builds)
18+
pnpm build

.claude/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"hooks": {
3+
"SessionStart": [
4+
{
5+
"hooks": [
6+
{
7+
"type": "command",
8+
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/session-start.sh"
9+
}
10+
]
11+
}
12+
]
13+
}
14+
}

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,11 @@
1616
},
1717
"devDependencies": {
1818
"@changesets/cli": "^2.29.8"
19+
},
20+
"pnpm": {
21+
"onlyBuiltDependencies": [
22+
"@parcel/watcher",
23+
"esbuild"
24+
]
1925
}
2026
}

0 commit comments

Comments
 (0)