-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathknip.jsonc
More file actions
75 lines (75 loc) · 2.66 KB
/
Copy pathknip.jsonc
File metadata and controls
75 lines (75 loc) · 2.66 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"$schema": "https://unpkg.com/knip@6/schema.json",
"treatConfigHintsAsErrors": true,
"ignoreWorkspaces": [
"benchmarks/*",
"integration/*",
"playground/*",
"css-playground/*",
"packages/@sanity/tsdown-config/test/fixtures/**",
],
"ignoreExportsUsedInFile": {
"interface": true,
"type": true,
},
"rules": {
// dev workspaces are ignored, so their catalog entries appear unused
"catalog": "warn",
},
"workspaces": {
".": {
"entry": ["*.{ts,mts,mjs}"],
"project": ["*.{ts,mts,mjs}"],
"ignoreDependencies": [
"@sanity/pkg-utils",
"@sanity/tsconfig",
"@sanity/tsdown-config",
"husky",
"rimraf",
"tsdown",
],
},
"packages/@sanity/pkg-utils": {
"entry": ["package.config.ts", "scripts/*.ts", "src/cli/index.ts"],
"project": ["src/**/*.ts", "scripts/**/*.ts", "test/**/*.ts"],
"ignoreDependencies": [
// Referenced as a string in babel config, not imported
"@babel/preset-typescript",
],
"ignoreBinaries": ["sanity-tsdoc"],
},
"packages/@sanity/parse-package-json": {
"project": ["src/**/*.ts", "test/**/*.ts"],
},
"packages/@sanity/tsdown-config": {
"project": ["src/**/*.ts", "test/**/*.ts"],
"ignoreDependencies": [
// Used in test fixtures, not imported in package source
"@sanity/pkg-utils",
],
},
"packages/@sanity/vanilla-extract-integration": {
// The fixtures are rolldown build inputs referenced by path, not imported from the tests,
// and the bench harness is run explicitly via `vitest bench`
"entry": ["test/fixtures/*/entry.css.ts", "bench/*.bench.ts"],
"project": ["src/**/*.ts", "test/**/*.ts", "bench/**/*.ts"],
},
"packages/@sanity/vanilla-extract-rolldown-plugin": {
// The fixtures are rolldown build inputs referenced by path, not imported from the tests
"entry": ["test/fixtures/*/index.ts"],
"project": ["src/**/*.ts", "test/**/*.ts"],
},
"packages/@sanity/vanilla-extract-tsdown-plugin": {
// The fixtures are rolldown build inputs referenced by path, not imported from the tests
"entry": ["test/fixtures/*/index.ts"],
"project": ["src/**/*.ts", "test/**/*.ts"],
},
"packages/@sanity/vanilla-extract-vite-plugin": {
// The fixture app is a vite build input referenced by path, not imported from the tests,
// and the gitignored mutable fixture is generated by the invalidation tests
"entry": ["test/fixtures/*/src/main.ts"],
"project": ["src/**/*.ts", "test/**/*.ts", "!test/fixtures/mutable/src/**"],
},
"packages/@sanity/tsconfig": {},
},
}