Repository navigation
Expand file tree
/
Copy pathknip.jsonc
More file actions
77 lines (77 loc) · 3.1 KB
/
Copy pathknip.jsonc
File metadata and controls
77 lines (77 loc) · 3.1 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
67
68
69
70
71
72
73
74
75
76
77
{
"$schema": "https://unpkg.com/knip@6/schema.json",
// Focus on the packages and their tooling, not the demo apps.
"ignoreWorkspaces": ["docs", "playground", "examples/**"],
"ignoreIssues": {
// Tests import example sources without using their standalone manifests.
"examples/**": ["unlisted"],
// The package entry points expose these modules as a `locales` namespace.
"packages/{diagram-block,math-block,xl-multi-column}/src/i18n/locales/*.ts": [
"exports",
],
// Vitest registers these Node implementations as a command namespace.
"tests/src/commands/transport/*.ts": ["exports"],
// Read by the example generator; standalone manifests cannot use catalog:.
"pnpm-workspace.yaml": ["catalog"],
},
"workspaces": {
".": {
"entry": [".claude/skills/ios-simulator/scripts/device.mjs"],
// scripts/release.mjs invokes these CLIs through child_process.
"ignoreDependencies": ["bumpp", "changelogen"],
// install-playwright runs from tests/, which provides the binary.
"ignoreBinaries": ["playwright"],
},
"packages/core": {
// The legacy bundled build is invoked separately by build-bundled.
"vite": { "config": ["vite.config{,.bundled}.ts"] },
// The centralized browser tsconfig supplies these for colocated tests.
"ignoreDependencies": ["@types/react", "jsdom"],
"ignoreIssues": {
// These peers are optional for consumers who don't use Yjs v14.
"package.json": ["optionalPeerDependencies"],
},
},
"packages/dev-scripts": {
// gen:examples discovers these templates with a filesystem glob.
"entry": ["examples/template-react/*.template.tsx"],
},
"packages/react": {
// Colocated browser tests are run from tests/, which provides this.
"ignoreDependencies": ["vitest-browser-react"],
},
"packages/xl-multi-column": {
// Keep the Vite Plus peer resolution in sync with core.
"ignoreDependencies": ["jsdom"],
},
"packages/xl-pdf-exporter": {
// These .jsx files are assertions read as text by toMatchFileSnapshot.
"ignore": ["src/react-pdf/__snapshots__/*.jsx"],
},
"packages/xl-typst-compiler": {
// scripts/wasm-build.mjs invokes the installed run.js by filesystem path.
"ignoreDependencies": ["wasm-pack"],
},
"tests": {
"vite": { "config": ["vite.config{,.browser}.ts"] },
"entry": [
"docker-browser-partition.mjs",
"src/integration/builtPackages/{loadEntries,serverExport}.mjs",
"src/screen-reader/vite.config.screen-reader.ts",
"vitestSetup.screen-reader.ts",
],
// The Next.js integration fixture is installed separately with tarballs.
"project": [
"**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}",
"!nextjs-test-app/**",
],
// Vite Plus uses this for the browser suite's HTML reporter.
"ignoreDependencies": ["@vitest/ui"],
// `pnpm exec next build` runs in the isolated fixture, not this workspace.
"ignoreBinaries": ["build"],
"paths": {
"@examples/*": ["../examples/*"],
},
},
},
}