Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

knip.jsonc

84 lines3.4 KB

1{
2 "$schema": "https://unpkg.com/knip@6/schema.json",
3 // Exported types are part of our contracts even before they have consumers.
4 "rules": { "types": "off", "nsTypes": "off" },
5 // These executables are supplied by the OS or installed separately from npm.
6 "ignoreBinaries": ["eas", "file", "mkfifo", "pkill", "pkg-config", "plutil", "sips"],
7 "workspaces": {
8 ".": {
9 // Keep vendored reference repositories outside the root project.
10 "project": ["*.{js,mjs,cjs,ts,mts,cts}", ".github/**/*.cjs"],
11 "entry": [".github/scripts/thread-transfer-report.cjs"],
12 "vite": { "entry": [".github/**/*.test.cjs"] },
13 "vitest": { "entry": [".github/**/*.test.cjs"] },
14 },
15 "scripts": {
16 // Knip loads its preprocessor through a CLI option, not a source import.
17 "entry": ["knip-schemas.ts"],
18 },
19 "apps/server": {
20 // Vite+ pack entries and the launcher used by installed background services.
21 "entry": [
22 "src/bin.ts!",
23 "src/service-launcher.ts!",
24 "scripts/cli.ts",
25 "src/provider/testFixtures/*.mjs",
26 ],
27 // Native msgpack acceleration and the Vite+ web build prerequisite.
28 "ignoreDependencies": ["msgpackr-extract", "@t3tools/web"],
29 },
30 "apps/desktop": {
31 // Electron loads these bundles by filename rather than importing them.
32 "entry": [
33 "src/main.ts!",
34 "src/preload.ts!",
35 "src/preview-pick-preload.ts!",
36 "src/preview-pip-preload.ts!",
37 "src/preview/Annotation.css!",
38 ],
39 // The injected runtime resolves Playwright by string; release tooling runs
40 // electron-builder from this workspace, outside its package scripts.
41 "ignoreDependencies": ["playwright-core", "electron-builder"],
42 },
43 "apps/web": {
44 // Worktree setup invokes this directly from t3.json.
45 "entry": ["scripts/warm-dep-cache.ts"],
46 // UI component modules are copied and adapted as cohesive sets. Keep their
47 // named subcomponents even before they have callers; the file audit still
48 // reports an entire component module when nothing imports it.
49 "ignoreIssues": { "src/components/ui/*.tsx": ["exports", "nsExports", "duplicates"] },
50 },
51 "apps/mobile": {
52 // Expo loads local config plugins by string; Metro handles platform variants.
53 "entry": ["index.ts!", "plugins/*.cjs"],
54 // Fonts are configured as asset paths; Expo autolinks the native packages.
55 "ignoreDependencies": [
56 "@expo-google-fonts/dm-sans",
57 "@t3tools/mobile-review-diff-native",
58 "@t3tools/mobile-terminal-native",
59 ],
60 },
61 "apps/mobile/modules/t3-markdown-text": {
62 // React Native codegen discovers component specifications by filename.
63 "entry": ["src/*NativeComponent.ts!"],
64 },
65 "infra/relay": {
66 "entry": ["alchemy.run.ts!", "src/persistence/schema.ts!"],
67 },
68 "packages/*": {
69 // These workspace packages are private to this monorepo.
70 "includeEntryExports": true,
71 },
72 "packages/effect-acp": {
73 "includeEntryExports": true,
74 "entry": ["test/fixtures/*.ts"],
75 // Generated upstream protocol definitions are retained as a complete set.
76 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
77 },
78 "packages/effect-codex-app-server": {
79 "includeEntryExports": true,
80 "entry": ["test/fixtures/*.ts"],
81 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
82 },
83 },