-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathknip.jsonc
More file actions
50 lines (50 loc) · 1.61 KB
/
Copy pathknip.jsonc
File metadata and controls
50 lines (50 loc) · 1.61 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
{
"$schema": "https://unpkg.com/knip@6/schema-jsonc.json",
"tags": ["-lintignore"],
"ignoreDependencies": ["braid-src"],
"workspaces": {
".": {
"entry": ["scripts/**/*"],
// Used in the renovate config
// @babel/types is referenced in pnpm-workspace.yaml packageExtensions
"ignoreDependencies": ["renovate-config-seek", "@babel/types"],
},
"packages/braid-design-system": {
"entry": ["src/**/*.{docs,gallery,screenshots,snippets}.tsx"],
"ignoreUnresolved": ["./Icon.*Svg"],
// `site` is imported by .docs.tsx files which are only consumed by the site workspace
"ignoreDependencies": ["assert", "site"],
},
"packages/codemod": {
"entry": ["src/index.ts", "src/wrapper.ts"],
},
"site": {
"entry": [
"playroom.config.mts",
"scripts/**/*",
"sku.config.ts",
"sku.routes.ts",
"src/client.tsx",
"src/playroom.components.ts",
"src/playroom.frame.ts",
"src/playroom.scope.ts",
"src/render.tsx",
],
// `assert` might be getting confused with `node:assert`? Not sure why it's not detected.
// Babel presets are referenced by strings instead of imports so are not detected.
"ignoreDependencies": ["assert", "@babel/preset-typescript"],
},
"storybook": {
"entry": [
"chromatic.ts",
"decorators.tsx",
"globalTypes.ts",
"main.ts",
"modes.ts",
"preview.tsx",
],
// Referenced as a string in main.ts so not detected
"ignoreDependencies": ["@storybook/addon-webpack5-compiler-babel"],
},
},
}