-
Notifications
You must be signed in to change notification settings - Fork 207
Expand file tree
/
Copy pathknip.jsonc
More file actions
64 lines (58 loc) · 3.02 KB
/
knip.jsonc
File metadata and controls
64 lines (58 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"$schema": "https://unpkg.com/knip@5/schema.json",
// Disable lefthook plugin to avoid git worktree errors
// This is a workaround for: https://github.com/webpro-nl/knip/issues/990
"lefthook": false,
// Files to ignore when analyzing
"ignore": [
// - config files
"frontend/turbo/generators/config.ts",
"frontend/apps/docs/source.config.ts",
// - Generated files may contain unused exports
"frontend/internal-packages/db/supabase/database.types.ts",
"frontend/packages/db-structure/src/parser/tbls/schema.generated.ts",
// - Script for workaround
"frontend/apps/app/scripts/install-prisma-internals.mjs",
// - Next.js special files
"frontend/apps/docs/app/docs/sitemap.ts",
"frontend/apps/app/next.config.ts",
"frontend/apps/docs/next.config.mjs",
"frontend/internal-packages/agent/src/vectorstore/supabaseVectorStore.ts",
"frontend/internal-packages/agent/src/vectorstore/syncSchemaVectorStore.ts",
// - Newly added enum schema definitions (will be used in future implementations)
"frontend/packages/schema/src/schema/schema.ts",
"frontend/packages/schema/src/schema/index.ts",
// - Temporarily unused CommandPalette components (will be used in the future release)
"frontend/packages/erd-core/src/features/erd/components/ERDRenderer/CommandPalette/CommandPaletteOptions/CommandOptions.tsx",
"frontend/packages/erd-core/src/features/erd/components/ERDRenderer/CommandPalette/CommandPaletteOptions/index.ts",
// - Foundation code for Public Share feature (createPublicServerClient will be used in future phases)
"frontend/apps/app/libs/db/server.ts",
// - Server Actions are not detected by knip due to 'use server' directive
"frontend/apps/app/features/public-share/actions.ts"
],
// Dependencies to ignore when analyzing
"ignoreDependencies": [
"@prisma/internals", // Used by CLI package for schema parsing
"zod", // Used by schema package
"destyle.css", // Used by CSS imports in ui package
"json-refs", // Used by schema npm scripts
"json-schema-to-zod", // Used by schema npm scripts
"@liam-hq/cli", // Used by erd-sample build script
"@liam-hq/configs", // Used by tsconfig and biome configuration files
"@turbo/gen", // Required for `turbo gen` command in npm scripts
"@langchain/community", // Temporarily unused due to disabled vectorstore functionality
"@biomejs/biome", // Referenced in settings.json to enable Biome's "format on save" in VSCode
"@swc/core", // Required for Vercel deployment to prevent native binding errors
"@swc/wasm", // Required for Vercel deployment to prevent native binding errors
"langsmith", // Automatically used by LangChain when environment variables are set
"@electric-sql/pglite" // Used by pglite-server package and app package
],
// TODO: Review ignoreBinaries configuration later
"ignoreBinaries": ["playwright"],
// Workspace-specific configurations
"workspaces": {
"frontend/packages/cli": {
"entry": ["bin/cli.ts", "src/main.tsx"]
},
}
}