From 41300f0a34a7fb5dbb830b9b674ee95d1215eab7 Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 23 Apr 2026 11:56:31 +0200 Subject: [PATCH] chore: add knip config for dead-code detection knip.json declares the real entry points (scripts, tests, Remotion roots) and the devDeps invoked only as external CLIs (esbuild for build, agent-browser/remotion via npx) so future scans surface only true findings. Add \`npm run knip\` as the canonical invocation. Co-Authored-By: Claude Opus 4.7 (1M context) --- knip.json | 16 ++++++++++++++++ package.json | 1 + 2 files changed, 17 insertions(+) create mode 100644 knip.json diff --git a/knip.json b/knip.json new file mode 100644 index 00000000..922a0d96 --- /dev/null +++ b/knip.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://unpkg.com/knip@5/schema.json", + "entry": [ + "scripts/*.mjs", + "scripts/*.js", + "scripts/watch-subagents.ts", + "scripts/remotion/Root.tsx", + "scripts/remotion/index.ts", + "test/**/*.test.ts", + "test/mobile/vitest.config.ts", + "test/**/*.mjs" + ], + "project": ["src/**/*.{ts,tsx}", "scripts/**/*.{ts,tsx,mjs,js}", "test/**/*.{ts,mjs}"], + "ignoreExportsUsedInFile": true, + "ignoreDependencies": ["@remotion/cli", "@remotion/transitions", "esbuild", "agent-browser"] +} diff --git a/package.json b/package.json index 1e3584dd..75b1ed56 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "changeset": "changeset", "version-packages": "changeset version && npm install --package-lock-only && node scripts/check-lockfile-sync.mjs", "check:lockfile": "node scripts/check-lockfile-sync.mjs", + "knip": "npx --yes knip@latest", "release": "changeset publish" }, "workspaces": [