Skip to content

Commit 095cfc8

Browse files
authored
Ignore local dev tool worktrees (#1310)
* ignore .claude session dirs and tighten tsconfig excludes Adds .gitignore rules to keep transient .claude/ subdirs (notably .claude/worktrees) out of the repo, while preserving tracked agents/commands/hooks/ops/skills/settings.json. Adds defensive directory excludes to tsconfig.json so build/dist/external/ node_modules/.cache/.claude artifacts are never picked up. The 'include' pattern already scopes compilation to src/**/*.mts; these are belt-and- suspenders. Without these, eslint walks .claude/worktrees/* during 'pnpm check' and descends into nested checkouts, which combined with the type-aware projectService config can hang for many minutes. * Ignore local dev tool worktrees
1 parent 8fb5e6e commit 095cfc8

6 files changed

Lines changed: 33 additions & 1 deletion

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Thumbs.db
44
/.env
55
/.env.local
66
/.nvm
7+
/.pnpm-store
78
/.rollup.cache
89
/.type-coverage
910
/.vscode
@@ -19,4 +20,12 @@ Thumbs.db
1920
test/fixtures/commands/fix/e2e-test-js-temp-*
2021
test/fixtures/commands/fix/e2e-test-py-temp-*
2122

23+
/.claude/*
24+
!/.claude/agents/
25+
!/.claude/commands/
26+
!/.claude/hooks/
27+
!/.claude/ops/
28+
!/.claude/settings.json
29+
!/.claude/skills/
30+
2231
!/.vscode/extensions.json

.oxlintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
package-lock.json
2+
.claude/worktrees/
3+
.pnpm-store/

biome.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
"!**/.github",
1111
"!**/.husky",
1212
"!**/.nvm",
13+
"!.pnpm-store",
1314
"!**/.rollup.cache",
1415
"!**/.type-coverage",
1516
"!**/.vscode",
17+
"!.claude/worktrees",
1618
"!**/coverage",
1719
"!**/package.json",
1820
"!**/package-lock.json"

tsconfig.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"extends": "./.config/tsconfig.base.json",
33
"include": ["src/**/*.mts"],
4-
"exclude": ["src/**/*.test.mts"]
4+
"exclude": [
5+
"src/**/*.test.mts",
6+
".cache/**",
7+
".claude/**",
8+
"binaries/**",
9+
"build/**",
10+
"dist/**",
11+
"external/**",
12+
"node_modules/**",
13+
"pkg-binaries/**"
14+
]
515
}

vitest.config.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export default defineConfig({
88
exclude: [
99
'**/node_modules/**',
1010
'**/dist/**',
11+
'.claude/worktrees/**',
12+
'.pnpm-store/**',
1113
'**/.{idea,git,cache,output,temp}/**',
1214
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*',
1315
// Exclude E2E tests from regular test runs.

vitest.e2e.config.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ export default defineConfig({
99
// from racing on the npm _npx cache directory.
1010
fileParallelism: false,
1111
include: ['**/*.e2e.test.mts'],
12+
exclude: [
13+
'**/node_modules/**',
14+
'**/dist/**',
15+
'.claude/worktrees/**',
16+
'.pnpm-store/**',
17+
'**/.{idea,git,cache,output,temp}/**',
18+
],
1219
coverage: {
1320
exclude: [
1421
'**/{eslint,vitest}.config.*',

0 commit comments

Comments
 (0)