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": [