-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknip.ts
More file actions
33 lines (27 loc) · 783 Bytes
/
Copy pathknip.ts
File metadata and controls
33 lines (27 loc) · 783 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
import { type KnipConfig } from 'knip'
import { PLAYGROUND_PAGE_IDS } from './common/types/bundles.ts'
const config: KnipConfig = {
entry: [
'code/**/test-*.ts',
'code/benchmarks/bench-*.ts',
'code/benchmarks/benchmark.ts',
'code/build/{builder,watcher}.ts',
'code/client/browsersync-injection.ts',
'code/client/preload.ts',
'code/client/runtime.ts',
'code/testing/*/setup.ts',
'code/testing/cli.ts',
...PLAYGROUND_PAGE_IDS.flatMap(pageId => [`code/client/${pageId}/index.ts`]),
'code/client/breakout/worker.ts',
// Configurations
'code/rollup.config.ts',
],
project: [
'code/**/*.ts',
],
ignoreDependencies: [
'@boxicons/core',
],
}
// eslint-disable-next-line no-restricted-syntax
export default config