Skip to content

Commit 4e67e3c

Browse files
Merge pull request #4 from Jerry-CodeHub/chore/claude-settings
chore: add Claude Code project settings
2 parents 168fbf9 + ff9b1e6 commit 4e67e3c

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

.claude/settings.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(pnpm *)",
5+
"Bash(npm run *)",
6+
"Read(./**)",
7+
"WebFetch(domain:github.com)",
8+
"WebFetch(domain:npmjs.com)"
9+
],
10+
"deny": ["Read(.env)", "Read(.env.*)", "Bash(rm -rf *)"],
11+
"ask": ["Bash(git push *)"]
12+
},
13+
"env": {
14+
"CESIUM_ION_TOKEN": "${CESIUM_ION_TOKEN}"
15+
},
16+
"hooks": {
17+
"PostToolUse": [
18+
{
19+
"matcher": "Write|Edit",
20+
"hooks": [
21+
{
22+
"type": "command",
23+
"command": "pnpm format",
24+
"timeout": 30
25+
}
26+
]
27+
}
28+
]
29+
}
30+
}

.npmrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ shamefully-hoist=true
77
auto-install-peers=true
88

99
# 如果您不希望pnpm在对等依赖问题上失败
10-
strict-peer-dependencies=false
10+
strict-peer-dependencies=false
11+
12+
# CI 环境不使用 frozen-lockfile(解决 Vercel 部署问题)
13+
frozen-lockfile=false

0 commit comments

Comments
 (0)