From 026ed429e5ea1ca164d46a138042cb26e8f3b259 Mon Sep 17 00:00:00 2001 From: whilefoo Date: Mon, 15 Jul 2024 20:32:52 +0200 Subject: [PATCH] fix: ci --- .github/knip.ts | 3 ++- eslint.config.mjs | 2 +- package.json | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/knip.ts b/.github/knip.ts index df72ff7..aab29b7 100644 --- a/.github/knip.ts +++ b/.github/knip.ts @@ -1,8 +1,9 @@ import type { KnipConfig } from "knip"; const config: KnipConfig = { - entry: ["src/worker.ts"], + entry: ["src/worker.ts", "deploy/setup-kv-namespace.ts"], project: ["src/**/*.ts"], + ignore: ["jest.config.js"], ignoreBinaries: ["i"], ignoreExportsUsedInFile: true, ignoreDependencies: ["@mswjs/data", "esbuild", "eslint-config-prettier", "eslint-plugin-prettier", "msw"], diff --git a/eslint.config.mjs b/eslint.config.mjs index acbd01f..1d3aec3 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -9,7 +9,7 @@ export default tsEslint.config({ "@typescript-eslint": tsEslint.plugin, "check-file": checkFile, }, - ignores: [".github/knip.ts", "**/.wrangler/**"], + ignores: [".github/knip.ts", "**/.wrangler/**", "jest.config.js"], extends: [eslint.configs.recommended, ...tsEslint.configs.recommended, sonarjs.configs.recommended], languageOptions: { parser: tsEslint.parser, diff --git a/package.json b/package.json index ecf8c24..24fbfb9 100644 --- a/package.json +++ b/package.json @@ -56,12 +56,10 @@ "@swc/core": "1.6.5", "@swc/jest": "0.2.36", "tsup": "8.1.0", - "esbuild-jest": "0.5.0", "@jest/globals": "29.7.0", "@types/jest": "29.5.12", "jest": "29.7.0", "jest-junit": "16.0.0", - "ts-jest": "29.1.5", "@cloudflare/workers-types": "4.20240117.0", "@commitlint/cli": "19.3.0", "@commitlint/config-conventional": "19.2.2",