|
| 1 | +import type { KnipConfig } from "knip"; |
| 2 | + |
| 3 | +const config: KnipConfig = { |
| 4 | + workspaces: { |
| 5 | + ".": {}, |
| 6 | + "apps/cli": {}, |
| 7 | + "apps/local": { |
| 8 | + entry: ["src/server.ts", "src/routes/**/*.tsx", "src/server/*.ts"], |
| 9 | + }, |
| 10 | + "apps/cloud": { |
| 11 | + entry: ["src/server.ts", "src/routes/**/*.tsx", "src/server/*.ts"], |
| 12 | + }, |
| 13 | + "apps/desktop": { |
| 14 | + entry: ["src/preload.ts"], |
| 15 | + }, |
| 16 | + "apps/marketing": { |
| 17 | + entry: ["src/pages/**/*.astro", "src/pages/**/*.ts"], |
| 18 | + }, |
| 19 | + "packages/react": { |
| 20 | + entry: [ |
| 21 | + "src/api/*.tsx", |
| 22 | + "src/plugins/*.tsx", |
| 23 | + "src/pages/*.tsx", |
| 24 | + "src/components/*.tsx", |
| 25 | + "src/hooks/*.ts", |
| 26 | + "src/lib/*.ts", |
| 27 | + ], |
| 28 | + }, |
| 29 | + "packages/core/*": { |
| 30 | + includeEntryExports: true, |
| 31 | + }, |
| 32 | + "packages/kernel/*": { |
| 33 | + includeEntryExports: true, |
| 34 | + }, |
| 35 | + "packages/hosts/*": { |
| 36 | + includeEntryExports: true, |
| 37 | + }, |
| 38 | + "packages/plugins/keychain": { |
| 39 | + includeEntryExports: true, |
| 40 | + }, |
| 41 | + "packages/plugins/file-secrets": { |
| 42 | + includeEntryExports: true, |
| 43 | + }, |
| 44 | + "packages/plugins/google-discovery": { |
| 45 | + includeEntryExports: true, |
| 46 | + }, |
| 47 | + "packages/plugins/onepassword": { |
| 48 | + includeEntryExports: true, |
| 49 | + ignoreDependencies: ["@executor/react"], |
| 50 | + }, |
| 51 | + "packages/plugins/graphql": { |
| 52 | + includeEntryExports: true, |
| 53 | + }, |
| 54 | + "packages/plugins/openapi": { |
| 55 | + includeEntryExports: true, |
| 56 | + }, |
| 57 | + "packages/plugins/mcp": { |
| 58 | + includeEntryExports: true, |
| 59 | + }, |
| 60 | + }, |
| 61 | + ignore: [ |
| 62 | + ".reference/**", |
| 63 | + "**/*.d.ts", |
| 64 | + "packages/kernel/runtime-deno-subprocess/src/deno-subprocess-worker.mjs", |
| 65 | + ], |
| 66 | + ignoreDependencies: [ |
| 67 | + "bun-types", |
| 68 | + ], |
| 69 | + ignoreBinaries: [ |
| 70 | + "tar", |
| 71 | + "python3", |
| 72 | + ], |
| 73 | +}; |
| 74 | + |
| 75 | +export default config; |
0 commit comments