From 2128e2638a7a502cb136ca77c86012773f0c61d3 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Mon, 12 May 2025 11:57:18 +0000 Subject: [PATCH] build: keep analysing test files but still ignore them for the build --- jest.config.ts | 3 +++ package.json | 2 +- tsconfig.dev.json | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tsconfig.dev.json diff --git a/jest.config.ts b/jest.config.ts index acd06e2..488fe94 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -24,6 +24,9 @@ const config: Config = { transform: { '^.+.tsx?$': ['ts-jest', {}], }, + modulePathIgnorePatterns: [ + '/dist', + ], }; export default config; diff --git a/package.json b/package.json index 117b43a..26f3321 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.7.1", "type": "commonjs", "scripts": { - "analyse": "tsc --noEmit", + "analyse": "tsc --noEmit --project ./tsconfig.dev.json", "build": "rm -rf ./dist && tsc", "dev": "nodemon src/index.ts", "lint": "eslint", diff --git a/tsconfig.dev.json b/tsconfig.dev.json new file mode 100644 index 0000000..3395ed7 --- /dev/null +++ b/tsconfig.dev.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig", + "exclude": ["node_modules"] +}