Add knip linter and fix all unused dependencies and exports #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Checking package dependencies with knip and lerna | |
| on: | |
| # Runs for every pull-requests created | |
| pull_request: | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| knip: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build TKO | |
| run: make | |
| - name: Check for dependency cycles and faulty imports/exports with knip | |
| run: make knip | |
| - name: Check lerna packages | |
| run: make lerna-check |