Skip to content

Commit ca73c2e

Browse files
committed
chore: knip
1 parent a7f7373 commit ca73c2e

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,6 @@ jobs:
198198
- name: 🧹 Check for unused code
199199
run: pnpm vp run knip
200200

201-
- name: 🧹 Check for unused production code
202-
run: pnpm vp run knip --production --exclude dependencies
203-
204201
i18n:
205202
name: 🌐 i18n validation
206203
runs-on: ubuntu-24.04-arm

knip.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const config: KnipConfig = {
88
'lunaria.config.ts',
99
'lunaria/lunaria.ts',
1010
'pwa-assets.config.ts',
11+
'modules/*.ts',
1112
'.lighthouserc.cjs',
1213
'lighthouse-setup.cjs',
1314
'uno-preset-*.ts!',
@@ -47,7 +48,7 @@ const config: KnipConfig = {
4748
},
4849
'docs': {
4950
entry: ['app/**/*.{ts,vue,css}'],
50-
ignoreDependencies: ['docus', 'better-sqlite3', '@nuxtjs/mdc'],
51+
ignoreDependencies: ['@nuxtjs/mdc'],
5152
},
5253
},
5354
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
"axe-core": "4.11.1",
130130
"changelogen": "0.6.2",
131131
"chromatic": "15.3.0",
132-
"defu": "6.1.4",
133132
"devalue": "5.6.4",
134133
"eslint-plugin-regexp": "3.1.0",
135134
"fast-check": "4.6.0",

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig({
1212
command: 'vp lint && vp fmt --check',
1313
},
1414
'knip': {
15-
command: 'knip',
15+
command: 'knip && knip --production --exclude dependencies',
1616
},
1717
'generate:lexicons': {
1818
command: 'lex build --lexicons lexicons --out shared/types/lexicons --clear',

0 commit comments

Comments
 (0)