Skip to content

Commit 41300f0

Browse files
Ark0Nclaude
andcommitted
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) <noreply@anthropic.com>
1 parent adbc083 commit 41300f0

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

knip.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"entry": [
4+
"scripts/*.mjs",
5+
"scripts/*.js",
6+
"scripts/watch-subagents.ts",
7+
"scripts/remotion/Root.tsx",
8+
"scripts/remotion/index.ts",
9+
"test/**/*.test.ts",
10+
"test/mobile/vitest.config.ts",
11+
"test/**/*.mjs"
12+
],
13+
"project": ["src/**/*.{ts,tsx}", "scripts/**/*.{ts,tsx,mjs,js}", "test/**/*.{ts,mjs}"],
14+
"ignoreExportsUsedInFile": true,
15+
"ignoreDependencies": ["@remotion/cli", "@remotion/transitions", "esbuild", "agent-browser"]
16+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"changeset": "changeset",
2828
"version-packages": "changeset version && npm install --package-lock-only && node scripts/check-lockfile-sync.mjs",
2929
"check:lockfile": "node scripts/check-lockfile-sync.mjs",
30+
"knip": "npx --yes knip@latest",
3031
"release": "changeset publish"
3132
},
3233
"workspaces": [

0 commit comments

Comments
 (0)