build: keep analysing test files but still ignore them for the build

This commit is contained in:
WebStreamr 2025-05-12 11:57:18 +00:00
parent 13520aa194
commit 2128e2638a
No known key found for this signature in database
3 changed files with 8 additions and 1 deletions

View file

@ -24,6 +24,9 @@ const config: Config = {
transform: {
'^.+.tsx?$': ['ts-jest', {}],
},
modulePathIgnorePatterns: [
'<rootDir>/dist',
],
};
export default config;

View file

@ -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",

4
tsconfig.dev.json Normal file
View file

@ -0,0 +1,4 @@
{
"extends": "./tsconfig",
"exclude": ["node_modules"]
}