mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-08 19:31:15 +02:00
112 lines
4.6 KiB
JSON
112 lines
4.6 KiB
JSON
{
|
|
"$schema": "https://unpkg.com/knip@6/schema.json",
|
|
// Exported types are part of our contracts even before they have consumers.
|
|
"rules": { "types": "off", "nsTypes": "off" },
|
|
// These executables are supplied by the OS or installed separately from npm.
|
|
"ignoreBinaries": ["eas", "file", "mkfifo", "pkill", "pkg-config", "plutil", "sips"],
|
|
"workspaces": {
|
|
".": {
|
|
// Keep vendored reference repositories outside the root project.
|
|
"project": ["*.{js,mjs,cjs,ts,mts,cts}", ".github/**/*.cjs"],
|
|
"entry": [
|
|
// CodeRabbit loads its configuration by filename.
|
|
".coderabbit.config.ts",
|
|
".github/scripts/thread-transfer-report.cjs",
|
|
],
|
|
"vite": { "entry": [".github/**/*.test.cjs"] },
|
|
"vitest": { "entry": [".github/**/*.test.cjs"] },
|
|
},
|
|
"scripts": {
|
|
// Knip loads its preprocessor through a CLI option; native verification and
|
|
// worktree setup (from t3.json) run directly.
|
|
"entry": ["knip-schemas.ts", "mobile-native-client.ts", "setup-worktree.ts"],
|
|
},
|
|
"apps/server": {
|
|
// Vite+ pack entries and the launcher used by installed background services.
|
|
"entry": [
|
|
"src/bin.ts!",
|
|
"src/claude-history-worker.ts!",
|
|
"scripts/cli.ts",
|
|
"scripts/evaluate-thread-titles.ts",
|
|
"scripts/measure-pr-preview.ts",
|
|
"scripts/probe-claude-fork-local-rollback-replay.ts",
|
|
"scripts/update-test-shard-weights.ts",
|
|
"scripts/verify-background-live.ts",
|
|
"src/provider/testFixtures/*.mjs",
|
|
],
|
|
// Keep the transitive Effect runtime pinned for standalone npm installs.
|
|
// The Vite+ web build prerequisite.
|
|
"ignoreDependencies": ["@effect/platform-node-shared", "@t3tools/web"],
|
|
},
|
|
"apps/desktop": {
|
|
// Electron loads these bundles by filename rather than importing them.
|
|
"entry": [
|
|
"gnome-extension/extension.js!",
|
|
"src/electron/WindowsForegroundFocusWorker.ts!",
|
|
"src/snapShot/GlobalShiftShortcutWorker.ts!",
|
|
"src/snapShot/RegionSnapShotWorker.ts!",
|
|
"src/snapShot/SnapShotAccessibilityWorker.ts!",
|
|
"src/boot.ts!",
|
|
"src/compileCache.ts!",
|
|
"src/main.ts!",
|
|
"src/preload.ts!",
|
|
"src/preview-pick-preload.ts!",
|
|
"src/preview-pip-preload.ts!",
|
|
"src/mac-permission-preload.ts!",
|
|
"src/preview/Annotation.css!",
|
|
],
|
|
// The injected runtime resolves Playwright by string; release tooling runs
|
|
// electron-builder from this workspace, outside its package scripts.
|
|
"ignoreDependencies": ["playwright-core", "electron-builder"],
|
|
},
|
|
"apps/web": {
|
|
// Vitest loads this through the per-file @vitest-environment directive.
|
|
"ignoreDependencies": ["jsdom"],
|
|
// Worktree setup (scripts/setup-worktree.ts) runs this directly.
|
|
"entry": ["scripts/warm-dep-cache.ts"],
|
|
// UI component modules are copied and adapted as cohesive sets. Keep their
|
|
// named subcomponents even before they have callers; the file audit still
|
|
// reports an entire component module when nothing imports it.
|
|
"ignoreIssues": { "src/components/ui/*.tsx": ["exports", "nsExports", "duplicates"] },
|
|
},
|
|
"apps/mobile": {
|
|
// Expo loads plugins and the fingerprint config by string; Metro embeds the browser entry in the native WebView.
|
|
"entry": [
|
|
"index.ts!",
|
|
"fingerprint.config.js",
|
|
"plugins/*.cjs",
|
|
"scripts/generate-device-stream.mts",
|
|
"src/features/devices/device-stream.browser.ts!",
|
|
"src/features/browser/preview-stream.browser.ts!",
|
|
],
|
|
// Fonts are configured as asset paths; Expo autolinks the native packages.
|
|
"ignoreDependencies": [
|
|
"@expo-google-fonts/dm-sans",
|
|
"@t3tools/mobile-review-diff-native",
|
|
"@t3tools/mobile-terminal-native",
|
|
],
|
|
},
|
|
"apps/mobile/modules/t3-markdown-text": {
|
|
// React Native codegen discovers component specifications by filename.
|
|
"entry": ["src/*NativeComponent.ts!"],
|
|
},
|
|
"infra/relay": {
|
|
"entry": ["alchemy.run.ts!", "src/persistence/schema.ts!"],
|
|
},
|
|
"packages/*": {
|
|
// These workspace packages are private to this monorepo.
|
|
"includeEntryExports": true,
|
|
},
|
|
"packages/effect-acp": {
|
|
"includeEntryExports": true,
|
|
"entry": ["test/fixtures/*.ts"],
|
|
// Generated upstream protocol definitions are retained as a complete set.
|
|
"ignoreIssues": { "src/_generated/**": ["exports", "types"] },
|
|
},
|
|
"packages/effect-codex-app-server": {
|
|
"includeEntryExports": true,
|
|
"entry": ["test/fixtures/*.ts"],
|
|
"ignoreIssues": { "src/_generated/**": ["exports", "types"] },
|
|
},
|
|
},
|
|
}
|