-
Notifications
You must be signed in to change notification settings - Fork 1
/
knip.ts
38 lines (36 loc) · 1.04 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
import type { KnipConfig } from "knip";
const config: KnipConfig = {
// Exclude types analysis for now
exclude: ["types"],
ignore: ["**/*.d.ts"],
// Include all the workspaces
workspaces: {
".": {
entry: ["sst.config.ts", "infra/*.ts"],
project: "iat/*.ts",
ignore: [".sst/**"],
},
"example/*": {
entry: ["app/*.{ts,tsx}", "app/views/**/*.tsx"],
project: ["app/**/*.{ts,tsx}"],
},
"packages/sdk": {
entry: "src/**/index.{ts,tsx}",
project: ["src/**/*.{ts,tsx}"],
},
"packages/shared": {
entry: "**/*.{ts,tsx}",
},
"packages/wallet": {
entry: ["app/*.{ts,tsx}", "app/views/**/*.tsx"],
project: ["app/**/*.{ts,tsx}"],
},
"packages/backend-elysia": {
entry: "src/index.ts",
project: "src/**/*.ts",
},
},
// Ignore SDK for knip for now
ignoreWorkspaces: ["packages/sdk"],
};
export default config;