Skip to content

Commit

Permalink
chore: exclude __mocks__ dir from build
Browse files Browse the repository at this point in the history
  • Loading branch information
duniul committed Jul 8, 2023
1 parent eb14cbf commit d3a789a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 5 additions & 2 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["node"]
"types": ["node"],
"rootDir": "src"
},
"exclude": [
"**/lib/**",
"**/node_modules/**",
"**/__snapshots__/**",
"**/__fixtures__/**",
"**/__tests__/**",
"**/*.test.*"
"**/__test__/**",
"**/__mocks__/**",
"**/*.test.*",
]
}
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"target": "es2018",
"module": "commonjs",
"lib": ["es2018"],
"rootDir": "src",
"outDir": "lib",
"tsBuildInfoFile": "lib/.tsbuildinfo",
"esModuleInterop": true,
Expand All @@ -18,8 +17,5 @@
"removeComments": true
},
"include": ["src", "__mocks__", "src/__test__"],
"exclude": [
"**/lib/**",
"**/node_modules/**"
]
"exclude": ["**/lib/**", "**/node_modules/**"]
}

0 comments on commit d3a789a

Please sign in to comment.