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