forked from better-auth/better-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknip.jsonc
More file actions
58 lines (58 loc) · 1.69 KB
/
knip.jsonc
File metadata and controls
58 lines (58 loc) · 1.69 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
{
"$schema": "https://unpkg.com/knip@5/schema-jsonc.json",
"ignoreExportsUsedInFile": {
"interface": true,
"type": true
},
"tags": ["-lintignore"],
"ignore": [
// test utilities only imported by test files — invisible to --production
"packages/better-auth/src/client/test-plugin.ts",
// CI scripts used by GitHub Actions workflows, not by packages
".github/scripts/**"
],
"ignoreBinaries": ["playwright", "changeset", "open", "remark", "tsx"],
// exports used only by tests — invisible to --production mode
"ignoreIssues": {
"packages/cli/src/commands/init/index.ts": ["exports"],
"packages/cli/src/commands/init/utility/imports.ts": ["exports"],
"packages/sso/src/saml/assertions.ts": ["exports"]
},
"ignoreDependencies": ["@changesets/cli", "@vitest/coverage-istanbul"],
"rules": {
// @cloudflare/workers-types is a valid optional peer dep reference
"optionalPeerDependencies": "off",
// catalog entries used by docs/ which is in ignoreWorkspaces
"catalog": "off"
},
"workspaces": {
"packages/*": {
"entry": ["src/index.ts!"],
"project": ["src/**/*.ts!"]
},
"packages/better-auth": {
"project": [
"src/**/*.ts!",
"!src/adapters/**/test/*.prisma",
"!src/adapters/**/test/.tmp",
"!src/adapters/**/test/auth.ts"
]
},
"packages/core": {
"ignoreDependencies": [
// type-only dependencies
"kysely!",
"nanostores!"
]
},
"packages/test-utils": {},
"packages/expo": {
// neverBundle externals: referenced in bundled output, not in source
"ignoreDependencies": ["@better-fetch/fetch", "better-call"]
}
},
"vitest": {
"entry": ["**/*.test.ts", "**/*.spec.ts"]
},
"ignoreWorkspaces": ["demo/**", "docs/**", "e2e/**"]
}