-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathknip.config.js
More file actions
60 lines (55 loc) · 1.93 KB
/
knip.config.js
File metadata and controls
60 lines (55 loc) · 1.93 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
/*
Knip is an export–import dependency checker.
If you want to use it, call pnpm knip.
You can also add " && knip" to "pre-push" and "check" in the root package.json
to make it part of your development process.
Some exports may throw errors during setup because the configuration below is prepared
for the full version of the Workflow Builder.
But knip is a very useful tool, so after resolving these issues, it will be useful for you.
*/
/**
* @type {import('knip').KnipConfig}
*/
export default {
ignore: ['.claude/**'],
workspaces: {
'apps/demo': {
entry: ['src/main.tsx'],
project: ['src/**/*.{ts,tsx}', '!src/app/plugins/**/libs/**/*.{ts,tsx}'],
ignoreDependencies: ['anymatch', 'javascript-obfuscator', 'html-to-image', 'jspdf', 'libavoid-js', 'web-worker'],
},
'apps/icons': {
entry: ['index.ts', 'src/generate-icons.ts'],
project: '**/*.{ts,tsx}',
ignoreDependencies: ['@phosphor-icons/core', '@svgr/core'],
},
'apps/tools': {
entry: ['src/scripts/*.ts'],
project: 'src/**/*.ts',
},
'packages/types': {
project: '**/*.ts',
},
'packages/sdk': {
entry: ['src/index.ts', 'src/**/*.{ts,tsx}', 'vite.config.mts'],
project: ['src/**/*.{ts,tsx}', 'vite.config.mts'],
// @fontsource/poppins is consumed via @import statements in src/index.css.
// Knip only walks JS/TS, so it can't see the CSS reference.
ignoreDependencies: ['@fontsource/poppins'],
},
'apps/backend': {
entry: ['src/server.ts', 'drizzle.config.ts'],
},
'packages/execution-core': {
entry: ['src/index.ts'],
},
'apps/execution-worker': {
entry: ['src/engines/temporal/worker.ts', 'src/engines/temporal/workflows/run-workflow.ts'],
},
'apps/docs': {
entry: ['astro.config.mjs', 'src/components/**/*.astro'],
project: ['**/*.{mjs,ts,astro}'],
ignoreDependencies: ['@iconify-json/ph'],
},
},
};