-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathknip.config.ts
More file actions
60 lines (58 loc) · 1.76 KB
/
Copy pathknip.config.ts
File metadata and controls
60 lines (58 loc) · 1.76 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
import type { KnipConfig } from 'knip';
const config: KnipConfig = {
exclude: ['duplicates', 'optionalPeerDependencies'],
workspaces: {
'.': {
ignoreDependencies: ['@changesets/config', 'playwright-ctrf-json-reporter'],
entry: ['.github/workflows/*.yml', '.changeset/config.json', 'biome.json'],
project: ['.github/workflows/*.yml', '.changeset/config.json', 'biome.json'],
},
'packages/studiocms_ui': {
ignoreDependencies: ['studiocms'],
entry: [
'src/**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}',
'test/**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}',
'playwright.config.{js,ts}',
],
project: ['**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}'],
astro: {
entry: ['src/**/*.astro', 'test/**/*.astro'],
project: ['src/**/*.astro', 'test/**/*.astro'],
},
},
'packages/*/test/fixtures/test-server': {
ignoreDependencies: ['studiocms'],
entry: ['**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,json,html,css,astro}'],
project: ['**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,json,html,css,astro}'],
astro: {
entry: ['**/*.astro'],
project: ['**/*.astro'],
},
},
docs: {
ignoreDependencies: ['studiocms', 'sharp'],
entry: [
'src/**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}',
'scripts/**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}',
'lunaria/**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}',
'lunaria.config.ts',
'starlight-types.ts',
'hostUtils.ts',
],
project: ['**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}'],
astro: {
entry: [
'astro.config.{js,cjs,mjs,ts,mts}',
'src/content/config.ts',
'src/content.config.ts',
'src/pages/**/*.{astro,mdx,js,ts}',
'src/components/**/*.{astro,mdx,js,ts}',
'src/content/**/*.mdx',
'src/middleware.{js,ts}',
'src/actions/index.{js,ts}',
],
},
},
},
};
export default config;