Skip to content

Commit 15f35f5

Browse files
authored
chore: knip config part 2: the resurgence (#909)
1 parent a29b6e3 commit 15f35f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,6 @@ jobs:
191191

192192
- name: 🧹 Check for unused code
193193
run: pnpm knip
194+
195+
- name: 🧹 Check for unused production code
196+
run: pnpm knip --production

knip.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const config: KnipConfig = {
2525
'uno-preset-rtl.ts!',
2626
'scripts/**/*.ts',
2727
],
28-
project: ['**/*.{ts,vue,cjs,mjs}'],
29-
ignore: ['test/fixtures/**'],
28+
project: ['**/*.{ts,vue,cjs,mjs}', '!test/fixtures/**'],
3029
ignoreDependencies: [
3130
'@iconify-json/*',
3231
'@vercel/kv',

0 commit comments

Comments
 (0)