Skip to content

Commit

Permalink
add knip
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Sep 1, 2024
1 parent 4a641d4 commit b33a611
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/knip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: knip

on:
pull_request:
paths-ignore:
- ".github/**"
- "pnpm-lock.yaml"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
knip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9.7.0

- name: Install dependencies
run: pnpm i

- name: Run knip
run: pnpm knip
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"lint:fix": "turbo lint --continue -- --fix --cache --cache-location '.cache/.eslintcache' && manypkg fix",
"lint:ws": "pnpm sherif@latest -r root-package-private-field",
"typecheck": "turbo run typecheck",
"ui-add": "turbo run ui-add"
"ui-add": "turbo run ui-add",
"knip": "npx knip --exclude binaries,dependencies"
},
"dependencies": {
"@manypkg/cli": "^0.21.4",
Expand Down

0 comments on commit b33a611

Please sign in to comment.