chore: add jobs:worker script and knip dead-code check to CI

Add 'knip' and 'jobs:worker' scripts to package.json. Wire knip into CI check job after tests. Remove redundant jobs-worker entry from knip.json (auto-detected).
This commit is contained in:
openhands committed 2026-08-07 18:54:51 +02:00
1 parent 82e8448f26
commit 510d070dc5
3 files changed
+10 -3

No files matched your search

+1
View File
@@ -47,6 +47,7 @@ jobs:
pnpm biome:lint
pnpm typecheck
pnpm test
pnpm knip
echo "--- CI checks passed ---"
deploy:
+7 -3
View File
@@ -4,15 +4,19 @@
"src/app/**/page.{ts,tsx}",
"src/app/**/layout.{ts,tsx}",
"src/app/**/route.{ts,tsx}",
"src/app/**/{error,not-found,loading,template,default,global-error}.{ts,tsx}"
"src/app/**/{error,not-found,loading,template,default,global-error}.{ts,tsx}",
"scripts/migrate-aes-cbc-to-gcm.ts"
],
"project": ["src/**/*.{ts,tsx}"],
"project": ["src/**/*.{ts,tsx}", "scripts/**/*.{ts,js}"],
"ignoreDependencies": [
"tailwindcss-animate",
"@tailwindcss/forms",
"@tailwindcss/typography",
"pino-pretty",
"tailwindcss"
"tailwindcss",
"husky",
"@sentry/nextjs"
],
"ignore": ["src/actions/import-badges.ts"],
"ignoreBinaries": ["sendmail"]
}
+2
View File
@@ -13,6 +13,8 @@
"lint": "biome check .",
"biome:lint": "biome check .",
"format": "biome format --write .",
"knip": "knip --include files,dependencies,devDependencies,unlisted,binaries",
"jobs:worker": "tsx scripts/jobs-worker.ts",
"test": "vitest",
"typecheck": "tsc --noEmit",
"db:generate": "drizzle-kit generate",