Skip to content

Commit eb6aec9

Browse files
authored
chore: run Knip to declutter code (#26)
1 parent bf3db00 commit eb6aec9

File tree

10 files changed

+728
-17
lines changed

10 files changed

+728
-17
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ jobs:
5252
- run: npm ci --ignore-scripts --no-audit --no-fund
5353
- run: npm run lint
5454

55+
declutter-code:
56+
name: Declutter code (Knip)
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v5
60+
- name: Use Node.js
61+
uses: actions/setup-node@v5
62+
with:
63+
cache: 'npm'
64+
node-version: 22
65+
- run: npm ci --ignore-scripts --no-audit --no-fund
66+
- run: npm run knip
67+
5568
lint-package:
5669
name: Lint package (publint)
5770
runs-on: ubuntu-latest

knip.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { KnipConfig } from 'knip'
2+
3+
const config: KnipConfig = {
4+
entry: ['src/lib/index.ts', 'src/cli/cli.ts'],
5+
project: ['src/**/*.ts'],
6+
}
7+
8+
export default config

0 commit comments

Comments
 (0)