-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathknip.ts
More file actions
58 lines (56 loc) · 1.61 KB
/
knip.ts
File metadata and controls
58 lines (56 loc) · 1.61 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
import type { KnipConfig } from 'knip';
const config: KnipConfig = {
workspaces: {
'.': {
entry: ['e2e/*.ts', 'scripts/*.ts'],
ignoreDependencies: [
// Referenced as Babel preset/plugin strings in build-side-panel.ts config, not as imports
'@babel/preset-react',
'@babel/preset-typescript',
'babel-plugin-react-compiler',
],
},
'platform/shared': {
entry: ['src/**/*.test.ts'],
},
'platform/mcp-server': {
entry: ['src/**/*.test.ts', 'src/dev-proxy.ts', 'src/stdio.ts', 'src/telemetry.ts'],
},
'platform/plugin-sdk': {},
'platform/cli': {
entry: ['src/**/*.test.ts'],
ignoreDependencies: [
// Referenced as a string literal in scaffolded package.json output, not a static import
'@opentabs-dev/plugin-tools',
],
},
'platform/plugin-tools': {
entry: ['src/**/*.test.ts'],
},
'platform/browser-extension': {
entry: [
'src/background.ts',
'src/offscreen/index.ts',
'src/side-panel/index.tsx',
'src/side-panel/styles.css',
'src/**/*.test.ts',
'src/**/*.stories.tsx',
'esbuild-plugin-babel.d.ts',
],
ignoreDependencies: [
// Required at runtime by rolldown-vite (aliased as "vite") for Storybook builds
'rollup',
],
},
'platform/create-plugin': {},
},
tags: ['+@public'],
ignore: [
'plugins/**',
'docs/**',
'platform/browser-extension/side-panel/**/*.{js,css}',
'platform/browser-extension/src/dev/*.js',
],
ignoreExportsUsedInFile: true,
};
export default config;