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

knip.jsonc

80 lines3.1 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 },
47 "apps/mobile": {
48 // Expo loads local config plugins by string; Metro handles platform variants.
49 "entry": ["index.ts!", "plugins/*.cjs"],
50 // Fonts are configured as asset paths; Expo autolinks the native packages.
51 "ignoreDependencies": [
52 "@expo-google-fonts/dm-sans",
53 "@t3tools/mobile-review-diff-native",
54 "@t3tools/mobile-terminal-native",
55 ],
56 },
57 "apps/mobile/modules/t3-markdown-text": {
58 // React Native codegen discovers component specifications by filename.
59 "entry": ["src/*NativeComponent.ts!"],
60 },
61 "infra/relay": {
62 "entry": ["alchemy.run.ts!", "src/persistence/schema.ts!"],
63 },
64 "packages/*": {
65 // These workspace packages are private to this monorepo.
66 "includeEntryExports": true,
67 },
68 "packages/effect-acp": {
69 "includeEntryExports": true,
70 "entry": ["test/fixtures/*.ts"],
71 // Generated upstream protocol definitions are retained as a complete set.
72 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
73 },
74 "packages/effect-codex-app-server": {
75 "includeEntryExports": true,
76 "entry": ["test/fixtures/*.ts"],
77 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
78 },
79 },