Skip to content

Commit 9604ea6

Browse files
author
Eric Oliver
committed
fix knip errors
1 parent b35ea82 commit 9604ea6

File tree

1 file changed

+44
-24
lines changed

1 file changed

+44
-24
lines changed

knip.json

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,49 @@
11
{
2-
"$schema": "https://unpkg.com/knip@latest/schema.json",
3-
"entry": ["src/extension.ts", "src/activate/index.ts", "webview-ui/src/index.tsx"],
4-
"project": ["src/**/*.ts", "webview-ui/src/**/*.{ts,tsx}"],
5-
"ignore": [
6-
"**/__mocks__/**",
7-
"**/__tests__/**",
8-
"**/test/**",
9-
"**/*.test.ts",
10-
"**/*.test.tsx",
11-
"**/stories/**",
12-
"bin/**",
13-
"apps/vscode-e2e/**",
14-
"evals/**",
15-
"src/extension/**",
16-
"src/activate/**",
17-
"src/workers/**",
18-
"src/schemas/ipc.ts",
19-
"src/extension.ts",
20-
"scripts/**",
21-
"vitest.config.ts"
22-
],
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
233
"workspaces": {
4+
".": {
5+
"entry": ["scripts/**/*.{js,mjs,ts}", "test-*.js"],
6+
"project": ["scripts/**/*.{js,mjs,ts}", "test-*.js"]
7+
},
8+
"src": {
9+
"entry": [
10+
"extension.ts",
11+
"cli/index.ts",
12+
"cli/cli-entry.ts",
13+
"cli/simple-index.ts",
14+
"workers/countTokens.ts"
15+
],
16+
"project": [
17+
"**/*.{js,ts}",
18+
"!**/__tests__/**",
19+
"!**/__mocks__/**",
20+
"!**/*.test.{js,ts}",
21+
"!**/*.spec.{js,ts}",
22+
"!temp/**/*",
23+
"!cli/commands/__tests__/sliding-timeout-demo.{js,ts}"
24+
],
25+
"ignore": [
26+
"temp/**/*",
27+
"cli/minimal-config.ts",
28+
"cli/standalone-config.ts",
29+
"cli/optimization/index.ts",
30+
"cli/utils/output-validation.ts",
31+
"core/question-handling/index.ts",
32+
"**/*.benchmark.{js,ts}",
33+
"dist/**/*",
34+
"out/**/*"
35+
]
36+
},
2437
"webview-ui": {
25-
"entry": ["src/index.tsx"],
26-
"project": ["src/**/*.{ts,tsx}"]
38+
"ignore": ["src/__mocks__/**", "src/components/common/__mocks__/**"]
39+
},
40+
"apps/vscode-e2e": {
41+
"entry": [".vscode-test.mjs"],
42+
"ignore": ["src/**"]
43+
},
44+
"evals": {
45+
"ignore": ["**/*"]
2746
}
28-
}
47+
},
48+
"ignore": ["evals/**/*", "__mocks__/**", "dist/**", "out/**", "bin/**"]
2949
}

0 commit comments

Comments
 (0)