build: keep analysing test files but still ignore them for the build
This commit is contained in:
parent
13520aa194
commit
2128e2638a
3 changed files with 8 additions and 1 deletions
|
|
@ -24,6 +24,9 @@ const config: Config = {
|
|||
transform: {
|
||||
'^.+.tsx?$': ['ts-jest', {}],
|
||||
},
|
||||
modulePathIgnorePatterns: [
|
||||
'<rootDir>/dist',
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
|
|||
|
|
@ -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
4
tsconfig.dev.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"extends": "./tsconfig",
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
Loading…
Reference in a new issue