21 lines
849 B
JSON
21 lines
849 B
JSON
{
|
|
"$schema": "https://unpkg.com/knip@6/schema.json",
|
|
// `--production` (E32) asks a second question besides "is this used?": "is it used by the code
|
|
// that SHIPS?" — an export only a test reaches is either dead in the bundle or exported for its
|
|
// test, which then says so with a JSDoc `@internal` tag (knip skips those in production mode).
|
|
// What is not production code at all is excluded from the production project with a `!…!`
|
|
// pattern: the test kits, the e2e suite, and the two build-tooling modules the vite config
|
|
// imports (they shape the bundle but are not in it).
|
|
"project": [
|
|
"**/*.{ts,tsx,js}!",
|
|
"!**/*.testkit.ts!",
|
|
"!e2e/**!",
|
|
"!reactPlugin.ts!",
|
|
"!devOnlyGuard.ts!",
|
|
],
|
|
"playwright": {
|
|
"config": ["playwright.config.ts"],
|
|
"entry": ["e2e/**/*.@(spec|setup|measure).ts"],
|
|
},
|
|
}
|