-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathknip.ts
More file actions
37 lines (34 loc) · 1018 Bytes
/
Copy pathknip.ts
File metadata and controls
37 lines (34 loc) · 1018 Bytes
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
import type { KnipConfig } from 'knip';
const config: KnipConfig = {
entry: ['eslint.config.js', 'vitest.config.ts', 'playwright.config.ts'],
project: ['*.{js,ts}'],
workspaces: {
'packages/shared': {
entry: ['src/index.ts', 'src/setupTests.ts'],
project: ['src/**/*.{ts,tsx}'],
ignore: ['**/*.test.{ts,tsx}']
},
'packages/web': {
entry: ['src/main.tsx', 'vite.config.ts', 'index.html'],
project: ['src/**/*.{ts,tsx}', 'vite.config.ts']
},
'packages/extension': {
entry: [
'entrypoints/content/index.tsx',
'entrypoints/popup/index.tsx',
'entrypoints/main-world.ts',
'wxt.config.ts',
'web-ext.config.ts'
],
project: [
'entrypoints/**/*.{ts,tsx}',
'wxt.config.ts',
'web-ext.config.ts'
],
ignoreDependencies: ['#imports']
}
},
ignore: ['**/*.d.ts', '**/dist/**', '**/dist-website/**', 'src/**'],
ignoreDependencies: ['@types/node']
};
export default config;