-
Notifications
You must be signed in to change notification settings - Fork 524
Expand file tree
/
Copy pathknip.jsonc
More file actions
66 lines (66 loc) · 2.64 KB
/
Copy pathknip.jsonc
File metadata and controls
66 lines (66 loc) · 2.64 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
65
66
{
"$schema": "./node_modules/knip/schema.json",
// Required in the event that git submodules are present. Do not remove this, despite knip warnings.
"ignore": [".repos/**"],
// `go` comes from mise.
"ignoreBinaries": ["go"],
// Spawned through a node_modules/.bin path in tools/release/local-registry.ts and
// bunx in apps/cli/tests/helpers/npm-registry.ts, which knip cannot trace.
"ignoreDependencies": ["verdaccio"],
"ignoreWorkspaces": ["apps/cli-go"],
"workspaces": {
"apps/cli": {
"entry": [
// Bundled by `bun build` in the build:shim script; knip's bun resolver derives no
// entry from `bun build`.
"src/shared/cli/bin.ts",
// Run from workflow steps. Declared because publish-docs-spec.ts is pipe-invoked and
// because a root plugin with a `**/` pattern makes knip drop cross-workspace workflow
// entries.
"scripts/*.ts",
// Referenced from package.json#release.plugins; knip's Semantic Release plugin only
// reads the root manifest.
"scripts/analyze-commits-title.js",
// tests/smoke-test.ts picks the platform file from a string map and spawns it.
"tests/smoke-test-*.ts",
],
"ignore": [
// Generated by the gen:feedback-types script.
"src/shared/feedback/database.types.ts",
// Starter templates read as text by compute-stacks.macro.ts, never imported.
"src/shared/compute/stacks/**",
],
// Binaries the machine provides rather than npm.
"ignoreBinaries": [
// apps/cli/tests/smoke-test-macos.ts
"brew",
// apps/cli/tests/smoke-test-windows.ts
"cygpath",
// apps/cli/src/commands/seed/buckets/buckets.integration.test.ts
"mkfifo",
// apps/cli/scripts/build.ts
"nfpm",
// apps/cli/scripts/build.ts
"rcodesign",
// apps/cli/tests/smoke-test-windows.ts
"scoop",
// The CLI under test in apps/cli/tests/smoke-test-{macos,windows}.ts.
"supabase",
],
// TODO(CLI-2424): spawned through a node_modules/.bin path in scripts/publish-docs-spec.ts.
"ignoreDependencies": ["prettier"],
},
"apps/docs": {
// Next.js convention file that knip's Next.js plugin does not list.
"entry": ["mdx-components.tsx"],
},
"packages/config": {
// Run from workflow steps; declared for the same cross-workspace reason as apps/cli.
"entry": ["scripts/*.ts"],
},
"packages/stack": {
// TODO(CLI-2423): knip does not credit the ws import in src/public/whole-stack.e2e.test.ts.
"ignoreDependencies": ["@types/ws", "ws"],
},
},
}