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": [
12 // CodeRabbit loads its configuration by filename.
13 ".coderabbit.config.ts",
14 ".github/scripts/thread-transfer-report.cjs",
15 ],
16 "vite": { "entry": [".github/**/*.test.cjs"] },
17 "vitest": { "entry": [".github/**/*.test.cjs"] },
18 },
19 "scripts": {
20 // Knip loads its preprocessor through a CLI option; native verification and
21 // worktree setup (from t3.json) run directly. release-desktop.yml bundles the
22 // Windows verify script with esbuild through a path knip does not trace, and
23 // electron-builder loads the macOS signer by path.
24 "entry": [
25 "knip-schemas.ts",
26 "mobile-native-client.ts",
27 "setup-worktree.ts",
28 "sign-macos.ts",
29 "verify-windows-desktop-artifact.ts",
30 ],
31 "ignoreDependencies": ["esbuild"],
32 // The `t3` npm package's files: copied into the package, never imported.
33 "ignore": ["npm-launcher/**"],
34 },
35 "apps/server": {
36 // Vite+ pack entries and the launcher used by installed background services.
37 "entry": [
38 "src/bin.ts!",
39 "src/claude-history-worker.ts!",
40 "scripts/cli.ts",
41 "scripts/evaluate-thread-titles.ts",
42 "scripts/fetch-expo-schema.ts",
43 "scripts/measure-pr-preview.ts",
44 "scripts/probe-claude-fork-local-rollback-replay.ts",
45 "scripts/update-test-shard-weights.ts",
46 "scripts/verify-background-live.ts",
47 "src/provider/testFixtures/*.mjs",
48 // graphqlgen reads its config.
49 "graphql.config.ts",
50 ],
51 // The generated operations export every selection's class.
52 "ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
53 // Keep the transitive Effect runtime pinned for standalone npm installs.
54 // The Vite+ web build prerequisite.
55 // Native and disk-loaded provider packages stay external to the bundle; the
56 // CLI archive and desktop sidecar stage them from this manifest.
57 "ignoreDependencies": ["@effect/platform-node-shared", "@t3tools/web", "@napi-rs/keyring"],
58 },
59 "apps/desktop": {
60 // Electron loads these bundles by filename rather than importing them.
61 "entry": [
62 "gnome-extension/extension.js!",
63 "src/electron/WindowsForegroundFocusWorker.ts!",
64 "src/snapShot/GlobalShiftShortcutWorker.ts!",
65 "src/snapShot/RegionSnapShotWorker.ts!",
66 "src/snapShot/SnapShotAccessibilityWorker.ts!",
67 "src/boot.ts!",
68 "src/compileCache.ts!",
69 "src/main.ts!",
70 "src/preload.ts!",
71 "src/preview-pick-preload.ts!",
72 "src/preview-pip-preload.ts!",
73 "src/mac-permission-preload.ts!",
74 "src/preview/Annotation.css!",
75 ],
76 // The injected runtime resolves Playwright by string; release tooling runs
77 // electron-builder from this workspace, outside its package scripts.
78 "ignoreDependencies": ["playwright-core", "electron-builder"],
79 },
80 "apps/web": {
81 // Worktree setup (scripts/setup-worktree.ts) runs this directly, and evidence
82 // fixtures run under node.
83 "entry": ["scripts/warm-dep-cache.ts", "test/fixtures/**/*.mjs"],
84 // UI component modules are copied and adapted as cohesive sets. Keep their
85 // named subcomponents even before they have callers; the file audit still
86 // reports an entire component module when nothing imports it.
87 "ignoreIssues": { "src/components/ui/*.tsx": ["exports", "nsExports", "duplicates"] },
88 },
89 "apps/marketing": {
90 // `astro check` runs from the typecheck task in vite.config.ts, which knip does not read.
91 "ignoreDependencies": ["@astrojs/check"],
92 },
93 "apps/mobile": {
94 // Expo loads plugins and the fingerprint config by string; Metro embeds the browser entry in the native WebView.
95 "entry": [
96 "index.ts!",
97 "fingerprint.config.js",
98 "plugins/*.cjs",
99 "scripts/generate-device-stream.mts",
100 "src/features/devices/device-stream.browser.ts!",
101 "src/features/browser/preview-stream.browser.ts!",
102 ],
103 // Fonts are configured as asset paths; Expo autolinks the native packages.
104 "ignoreDependencies": [
105 "@expo-google-fonts/dm-sans",
106 "@t3tools/mobile-review-diff-native",
107 "@t3tools/mobile-terminal-native",
108 ],
109 },
110 "apps/mobile/modules/t3-source-text": {
111 // React Native codegen discovers component specifications by filename.
112 "entry": ["src/*NativeComponent.ts!"],
113 },
114 "infra/relay": {
115 "entry": ["alchemy.run.ts!", "src/persistence/schema.ts!"],
116 },
117 "packages/*": {
118 // These workspace packages are private to this monorepo.
119 "includeEntryExports": true,
120 },
121 "packages/effect-acp": {
122 "includeEntryExports": true,
123 "entry": ["test/fixtures/*.ts"],
124 // Generated upstream protocol definitions are retained as a complete set.
125 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
126 },
127 "packages/effect-codex-app-server": {
128 "includeEntryExports": true,
129 "entry": ["test/fixtures/*.ts"],
130 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
131 },
132 "packages/source-control-github": {
133 // graphqlgen reads its config; the generated operations export every selection's class.
134 "entry": ["graphql.config.ts"],
135 "ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
136 },
137 },
138}