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

knip.jsonc

74 lines2.8 KB

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