Open History to see the last commit
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 "gnome-extension/extension.js!",
34 "src/electron/WindowsForegroundFocusWorker.ts!",
35 "src/snapShot/GlobalShiftShortcutWorker.ts!",
36 "src/snapShot/RegionSnapShotWorker.ts!",
37 "src/snapShot/SnapShotAccessibilityWorker.ts!",
38 "src/main.ts!",
39 "src/preload.ts!",
40 "src/preview-pick-preload.ts!",
41 "src/preview-pip-preload.ts!",
42 "src/preview/Annotation.css!",
43 ],
44 // The injected runtime resolves Playwright by string; release tooling runs
45 // electron-builder from this workspace, outside its package scripts.
46 "ignoreDependencies": ["playwright-core", "electron-builder"],
47 },
48 "apps/web": {
49 // Worktree setup invokes this directly from t3.json.
50 "entry": ["scripts/warm-dep-cache.ts"],
51 // UI component modules are copied and adapted as cohesive sets. Keep their
52 // named subcomponents even before they have callers; the file audit still
53 // reports an entire component module when nothing imports it.
54 "ignoreIssues": { "src/components/ui/*.tsx": ["exports", "nsExports", "duplicates"] },
55 },
56 "apps/mobile": {
57 // Expo loads local config plugins by string; Metro handles platform variants.
58 "entry": ["index.ts!", "plugins/*.cjs"],
59 // Fonts are configured as asset paths; Expo autolinks the native packages.
60 "ignoreDependencies": [
61 "@expo-google-fonts/dm-sans",
62 "@t3tools/mobile-review-diff-native",
63 "@t3tools/mobile-terminal-native",
64 ],
65 },
66 "apps/mobile/modules/t3-markdown-text": {
67 // React Native codegen discovers component specifications by filename.
68 "entry": ["src/*NativeComponent.ts!"],
69 },
70 "infra/relay": {
71 "entry": ["alchemy.run.ts!", "src/persistence/schema.ts!"],
72 },
73 "packages/*": {
74 // These workspace packages are private to this monorepo.
75 "includeEntryExports": true,
76 },
77 "packages/effect-acp": {
78 "includeEntryExports": true,
79 "entry": ["test/fixtures/*.ts"],
80 // Generated upstream protocol definitions are retained as a complete set.
81 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
82 },
83 "packages/effect-codex-app-server": {
84 "includeEntryExports": true,
85 "entry": ["test/fixtures/*.ts"],
86 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
87 },
88 },
89}