-
Notifications
You must be signed in to change notification settings - Fork 311
/
knip.ts
51 lines (49 loc) · 1.68 KB
/
knip.ts
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
// cspell:ignore knip
import type { KnipConfig } from 'knip'
// https://github.com/webpro/knip
const config: KnipConfig = {
ignore: ['**/*.d.ts', '**/locales/index.ts'],
vite: false,
webpack: false,
workspaces: {
'.': {
entry: ['*.js', '*.cjs'],
ignoreDependencies: ['@typescript/lib-dom', 'ses', 'eslint-import-resolver-typescript', 'vite'],
},
'packages/mask': {
ignore: ['public'],
entry: [
'.webpack/webpack.config.ts',
'background/initialization/mv2-entry.ts',
'background/initialization/mv3-entry.ts',
'dashboard/initialization/index.ts',
'popups/initialization/index.ts',
'content-script/index.ts',
'web-workers/wallet.ts',
'devtools/content-script/index.ts',
'devtools/panels/index.tsx',
],
ignoreDependencies: ['webpack-cli'],
},
'packages/web3-constants': {
entry: ['constants.ts'],
},
'packages/web3-contracts': {
ignoreDependencies: ['@typechain/web3-v1'],
},
'packages/injected-script': {
ignore: ['main/debugger.ts'],
entry: ['main/index.ts'],
},
'packages/mask-sdk': {
ignore: ['public-api'],
entry: ['main/index.ts'],
},
'packages/sentry': {
ignoreDependencies: ['@sentry/browser'],
},
},
ignoreWorkspaces: ['packages/polyfills', 'packages/sandboxed-plugins', 'packages/xcode'],
ignoreDependencies: ['buffer', 'https-browserify', 'punycode'],
}
export default config