mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-06 00:32:13 +08:00
chore(frontend): add Knip unused file report
This commit is contained in:
@@ -30,6 +30,7 @@ jobs:
|
||||
- 'package.json'
|
||||
- 'pnpm-lock.yaml'
|
||||
- 'pnpm-workspace.yaml'
|
||||
- 'knip.json'
|
||||
- 'eslint.config.ts'
|
||||
- 'tsconfig.json'
|
||||
- 'vite.config.*'
|
||||
@@ -73,3 +74,7 @@ jobs:
|
||||
- name: Run TypeScript typecheck
|
||||
if: steps.check_frontend.outputs.frontend == 'true'
|
||||
run: pnpm typecheck
|
||||
|
||||
- name: Report unused frontend files
|
||||
if: steps.check_frontend.outputs.frontend == 'true'
|
||||
run: pnpm knip:report
|
||||
|
||||
Reference in New Issue
Block a user