From a620abf26461d1efe05f4d33910658941af0b832 Mon Sep 17 00:00:00 2001 From: BROCODES2024 Date: Sat, 11 Apr 2026 10:10:11 +0530 Subject: [PATCH] chore: decouple knip from default lint script --- .github/workflows/checks.yml | 2 ++ package.json | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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",