2024-01-18 11:10:51 +01:00
|
|
|
import { KnipConfig } from "knip";
|
|
|
|
|
|
|
|
export default {
|
2024-04-08 12:38:54 +02:00
|
|
|
entry: ["src/electron-main.ts", "src/preload.ts", "electron-builder.ts", ".eslintrc-*.js", "scripts/**", "hak/**"],
|
2024-01-18 11:10:51 +01:00
|
|
|
project: ["**/*.{js,ts}"],
|
|
|
|
ignoreDependencies: [
|
|
|
|
// Brought in via hak scripts
|
|
|
|
"keytar",
|
|
|
|
"matrix-seshat",
|
|
|
|
// Needed by `electron-builder`
|
|
|
|
"electron-builder-squirrel-windows",
|
2024-04-08 12:38:54 +02:00
|
|
|
"@types/yargs",
|
2024-01-18 11:10:51 +01:00
|
|
|
// Required for `action-validator`
|
|
|
|
"@action-validator/*",
|
2024-11-05 13:12:22 +01:00
|
|
|
// Used for git pre-commit hooks
|
|
|
|
"husky",
|
2024-01-18 11:10:51 +01:00
|
|
|
],
|
|
|
|
ignoreBinaries: ["jq", "scripts/in-docker.sh"],
|
|
|
|
} satisfies KnipConfig;
|