-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathknip.config.ts
More file actions
55 lines (54 loc) · 1.59 KB
/
Copy pathknip.config.ts
File metadata and controls
55 lines (54 loc) · 1.59 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
import type { KnipConfig } from 'knip'
export default {
workspaces: {
'.': {
entry: ['scripts/*.ts', 'bump.config.ts'],
project: '**/*.ts'
},
'packages/gunshi': {
entry: ['src/constants.ts']
},
'packages/plugin-completion': {
ignore: ['examples/**/*.ts', 'src/bombshell/*.ts']
},
'packages/plugin-i18n': {
ignoreDependencies: ['@gunshi/plugin-global']
},
'packages/docs': {
entry: ['src/.vitepress/config.ts', 'src/.vitepress/theme/index.ts'],
ignore: ['src/.vitepress/banner.js', 'src/.vitepress/theme/components/GunshiBanner.vue'],
ignoreDependencies: [
'@vueuse/core',
// API reference generation reads built declaration files from these
// workspace packages during the docs build.
'@gunshi/plugin-i18n',
'@gunshi/plugin-renderer'
]
}
},
ignore: [
'playground/deno/main.ts',
'**/src/**.test-d.ts',
'bench/**',
'design/**/*.ts',
'playground/**'
],
ignoreDependencies: [
'lint-staged',
'deno',
'mitata',
'gunshi019',
'@kazupon/prettier-config',
'@kazupon/eslint-plugin',
'@typescript/native-preview'
],
ignoreBinaries: [
// `pnpm view` is a built-in pnpm subcommand, not a separate binary.
// Used in .github/workflows/release.yml for idempotency checks.
'view',
// `jsr` is invoked via `pnpm exec jsr` from each package's local
// devDependencies (declared via catalog). Knip does not associate the
// workflow's binary mention with any specific workspace package.json.
'jsr'
]
} satisfies KnipConfig