diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d1d571b9..5d752368 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -42,6 +42,8 @@ jobs: run: npm ci - name: Run ESLint run: npm run lint + - name: Run Knip + run: npm run knip build-check: name: Build check runs-on: ubuntu-latest diff --git a/package.json b/package.json index 85abc43e..e1679e41 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,9 @@ "prestart": "npm run build", "start": "cd dist && node src/index.js", "build:check": "npm run build -- --noEmit", - "knip": "knip --config .knip.json --production --include files,dependencies --no-progress --reporter compact", - "lint": "npm run knip && eslint --ext .ts ./src ./test", + "knip": "knip --config .knip.json --production --no-progress --reporter compact", + "lint": "eslint --ext .ts ./src ./test", + "check:all": "npm run lint && npm run knip", "lint:report": "eslint -o .lint-reports/eslint.json -f json --ext .ts ./src ./test", "lint:fix": "npm run lint -- --fix", "import": "node -r ts-node/register src/import-events.ts",