-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathknip.config.ts
More file actions
67 lines (65 loc) · 1.97 KB
/
Copy pathknip.config.ts
File metadata and controls
67 lines (65 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import type {KnipConfig} from 'knip'
const config: KnipConfig = {
workspaces: {
'.': {},
'packages/next-sanity': {
entry: ['src/**/index.ts', 'src/**/index.default.ts'],
project: ['src/**/*.{ts,tsx}'],
ignoreDependencies: [
// Peer dependencies provided by consumers
'styled-components',
],
},
'packages/sanity-config': {
project: ['src/**/*.{ts,tsx}'],
ignoreDependencies: [
// Peer dependency listed as devDependency for type resolution
'styled-components',
// Internal workspace config package used via tsconfig extends
'@repo/typescript-config',
],
},
'packages/typescript-config': {
entry: ['base.json'],
},
'packages/typedoc': {
ignoreDependencies: [
// Used by the typedoc CLI, pinned to 6.x since typedoc doesn't support TypeScript 7 yet
'typescript',
],
},
'apps/mvp': {
entry: ['app/**/*.{ts,tsx}'],
project: ['**/*.{ts,tsx}'],
ignore: ['sanity.types.ts'],
ignoreDependencies: [
// Sanity Studio peer deps that are used at runtime
'@sanity/vision',
'styled-components',
// CSS framework referenced via PostCSS config
'tailwindcss',
// Internal workspace config package used via tsconfig extends
'@repo/typescript-config',
],
paths: {'@/*': ['./*']},
},
'apps/static': {
entry: ['app/**/*.{ts,tsx}'],
project: ['**/*.{ts,tsx}'],
ignore: ['sanity.types.ts'],
ignoreDependencies: [
// Sanity Studio peer deps that are used at runtime
'@sanity/vision',
'styled-components',
// CSS framework referenced via PostCSS config
'tailwindcss',
// Internal workspace config package used via tsconfig extends
'@repo/typescript-config',
],
paths: {'@/*': ['./*']},
},
},
// Ignore fixture directories
ignore: ['fixtures/**'],
}
export default config