|
1 | 1 | import { KnipConfig } from "knip"; |
2 | 2 |
|
3 | 3 | export default { |
4 | | - entry: [ |
5 | | - "src/serviceworker/index.ts", |
6 | | - "src/workers/*.worker.ts", |
7 | | - "src/utils/exportUtils/exportJS.js", |
8 | | - "src/vector/localstorage-fix.ts", |
9 | | - "scripts/**", |
10 | | - "playwright/**", |
11 | | - "test/**", |
12 | | - "res/decoder-ring/**", |
13 | | - "res/jitsi_external_api.min.js", |
14 | | - "docs/**", |
15 | | - ], |
16 | | - project: ["**/*.{js,ts,jsx,tsx}"], |
17 | | - ignore: [ |
18 | | - // Keep for now |
19 | | - "src/hooks/useLocalStorageState.ts", |
20 | | - "src/hooks/useTimeout.ts", |
21 | | - "src/components/views/elements/InfoTooltip.tsx", |
22 | | - "src/components/views/elements/StyledCheckbox.tsx", |
| 4 | + workspaces: { |
| 5 | + "packages/shared-components": { |
| 6 | + entry: ["src/index.ts"], |
| 7 | + }, |
| 8 | + ".": { |
| 9 | + entry: [ |
| 10 | + "src/serviceworker/index.ts", |
| 11 | + "src/workers/*.worker.ts", |
| 12 | + "src/utils/exportUtils/exportJS.js", |
| 13 | + "src/vector/localstorage-fix.ts", |
| 14 | + "scripts/**", |
| 15 | + "playwright/**", |
| 16 | + "test/**", |
| 17 | + "res/decoder-ring/**", |
| 18 | + "res/jitsi_external_api.min.js", |
| 19 | + "docs/**", |
| 20 | + ], |
| 21 | + ignore: [ |
| 22 | + // Keep for now |
| 23 | + "src/hooks/useLocalStorageState.ts", |
| 24 | + "src/hooks/useTimeout.ts", |
| 25 | + "src/components/views/elements/InfoTooltip.tsx", |
| 26 | + "src/components/views/elements/StyledCheckbox.tsx", |
23 | 27 |
|
24 | | - "packages/**/*", |
25 | | - ], |
| 28 | + "packages/**/*", |
| 29 | + ], |
| 30 | + }, |
| 31 | + }, |
26 | 32 | ignoreDependencies: [ |
27 | 33 | // Required for `action-validator` |
28 | 34 | "@action-validator/*", |
@@ -52,13 +58,6 @@ export default { |
52 | 58 | // would with a normal library). |
53 | 59 | "@types/content-type", |
54 | 60 | "@types/sdp-transform", |
55 | | - |
56 | | - // Used in EW but failed because of "link:" |
57 | | - "@element-hq/web-shared-components", |
58 | | - ], |
59 | | - ignoreBinaries: [ |
60 | | - // Used in scripts & workflows |
61 | | - "jq", |
62 | 61 | ], |
63 | 62 | ignoreExportsUsedInFile: true, |
64 | 63 | } satisfies KnipConfig; |
0 commit comments