Skip to content

Commit 8556975

Browse files
committed
add more common file inclusions/exclusions for monorepo tsconfigs
1 parent bd97024 commit 8556975

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

packages/tsconfig/tsconfig.mono.cjs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"display": "Saber CommonJS TSConfig for monorepos (recommended)",
55
"compilerOptions": {
66
"composite": true
7-
}
7+
},
8+
"exclude": ["**/*.spec.ts", "**/*.test.ts"]
89
}

packages/tsconfig/tsconfig.mono.dom.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"display": "Saber DOM TSConfig for monorepos",
55
"compilerOptions": {
66
"composite": true
7-
}
7+
},
8+
"exclude": ["**/*.spec.ts", "**/*.test.ts"]
89
}

packages/tsconfig/tsconfig.mono.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"display": "Saber Node16 TSConfig for monorepos (recommended)",
55
"compilerOptions": {
66
"composite": true
7-
}
7+
},
8+
"exclude": ["**/*.spec.ts", "**/*.test.ts"]
89
}

packages/tsconfig/tsconfig.root.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@
66
"noEmit": true,
77
"types": ["node", "jest"]
88
},
9-
"include": ["jest.config.mjs", ".eslintrc.cjs"]
9+
"include": [
10+
"jest.config.mjs",
11+
".eslintrc.cjs",
12+
"packages/**/*.spec.ts",
13+
"packages/**/*.test.ts"
14+
]
1015
}

0 commit comments

Comments
 (0)