Skip to content

Commit 1dfd436

Browse files
committed
chore: add knip:fix script and document knip in README
Matches the existing :fix pattern (format/format:check, tailwind:lint/tailwind:fix) and surfaces the unused-code check in the README scripts reference table.
1 parent a0fea03 commit 1dfd436

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ This runs the full code-generation pipeline (blocks, schema, sections, loaders,
6868
| `npm run typecheck` | `tsc --noEmit` — no code emitted, only type errors |
6969
| `npm run format` | Format `src/**/*.{ts,tsx}` with Prettier |
7070
| `npm run tailwind:fix` | Auto-fix Tailwind class issues |
71+
| `npm run knip` | Find unused files, deps, and exports |
72+
| `npm run knip:fix` | Auto-fix knip issues (removes unused exports) |
7173
| `npm run clean` | Nuke all caches + reinstall |
7274

7375
## Deploying

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
2121
"format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
2222
"knip": "knip",
23+
"knip:fix": "knip --fix",
2324
"clean": "rm -rf node_modules .cache dist .wrangler/state node_modules/.vite && npm install",
2425
"tailwind:lint": "tsx scripts/tailwind-lint.ts",
2526
"tailwind:fix": "tsx scripts/tailwind-lint.ts --fix"

0 commit comments

Comments
 (0)