-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathknip.jsonc
More file actions
78 lines (78 loc) · 3 KB
/
Copy pathknip.jsonc
File metadata and controls
78 lines (78 loc) · 3 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
76
77
78
{
"$schema": "https://unpkg.com/knip@6/schema.json",
"workspaces": {
".": {
"entry": ["plugins/**/*", "scripts/**/*.ts"],
"project": [],
"ignoreDependencies": []
},
"packages/ui": {},
"packages/runtime": {
"entry": ["scripts/generate-json-schema.ts"]
},
"apps/api": {
"entry": [
"migrations/**/*.ts",
"scripts/**/*.ts",
// Dev-only module loaded via require() - needs explicit entry
"src/api/routes/dev-only.ts"
],
"ignore": ["src/api/index.ts"],
"ignoreDependencies": [
// Resolved at bundle-time by scripts/bundle-server-script.ts ALWAYS_INCLUDE
"@jitl/quickjs-wasmfile-release-sync"
]
},
"apps/web": {
"entry": [
// Browser asset served verbatim from the Vite public dir; deck HTML
// files reference it via <script src="/deck-runtime/v1/...">.
"public/deck-runtime/**/*.js",
// Referenced by index.native.html rather than the module graph.
"public/native-boot.js",
// Playwright Component Testing harness. The mount template is loaded
// via ct/playwright/index.html + ctTemplateDir (index.css is imported
// from it), and the I/O stubs are wired only through resolve.alias in
// playwright-ct.config.ts — both are reachable by tooling knip can't
// trace. The *.ct.tsx specs are already entries via the playwright config.
"ct/playwright/index.tsx",
"ct/harness/stubs/**"
]
},
"packages/sandbox": {
// orgfs/sidecar-main.ts is bundled via `bun build` into the
// orgfs-sidecar image (deploy/helm/sandbox-env/orgfs-sidecar).
// The skills *.mjs CLIs are COPY'd into the sandbox image and executed
// there via the _bin shims (e.g. `slides-create`), never imported.
// Without marking them as entries, knip treats their graphs as unused.
// daemon-e2e/stub-harness.mjs is exec'd by the daemon under test as its
// HARNESS_RUNNER_CMD — a process launch knip can't trace, same as above.
"entry": [
"orgfs/sidecar-main.ts",
"image/skills/*/*.mjs",
"daemon-e2e/stub-harness.mjs"
]
},
"packages/typegen": {},
"packages/e2e": {
// Standalone mock servers spawned by Playwright's `webServer` via a
// `bun run fixtures/...` command string — knip can't trace a process
// launch, so without this entry it flags the file as unused.
// github-stub-server.ts wraps fixtures/github-stub.ts (the in-memory
// Git Data stub the decofile-api spec points GITHUB_API_BASE_URL at).
"entry": [
"fixtures/commerce-upgrade-mock.ts",
"fixtures/github-stub-server.ts"
]
},
"apps/native": {
// Included from Rust and evaluated inside the self-test webview.
"entry": ["src-tauri/selftest/bundle.js"]
}
},
"ignoreDependencies": ["@types/*"],
// TODO(@camudo): Remove this config once I fix all unused type exports
"ignoreIssues": {
"**/*": ["types"]
}
}