Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure co-located test files don't have definitions generated #472

Merged
merged 6 commits into from
Feb 3, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move the exclude config into the rollup config
  • Loading branch information
selbekk committed Feb 3, 2020
commit 65075aa8cbb58c8abef8a913b2f1cc6b858b8b09
10 changes: 10 additions & 0 deletions src/createRollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ export async function createRollupConfig(
cacheRoot: `./node_modules/.cache/tsdx/${opts.format}/`,
tsconfig: opts.tsconfig,
tsconfigDefaults: {
exclude: [
'**/*.spec.ts',
'**/*.test.ts',
'**/*.spec.tsx',
'**/*.test.tsx',
'node_modules',
'bower_components',
'jspm_packages',
'dist',
],
compilerOptions: {
sourceMap: true,
declaration: true,
Expand Down
10 changes: 0 additions & 10 deletions templates/basic/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"include": ["src", "types", "test"],
"exclude": [
"**/*.spec.ts",
"**/*.test.ts",
"**/*.spec.tsx",
"**/*.test.tsx",
"node_modules",
"bower_components",
"jspm_packages",
"dist"
],
"compilerOptions": {
"module": "esnext",
"lib": ["dom", "esnext"],
Expand Down
10 changes: 0 additions & 10 deletions templates/react-with-storybook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"include": ["src", "types", "test"],
"exclude": [
"**/*.spec.ts",
"**/*.test.ts",
"**/*.spec.tsx",
"**/*.test.tsx",
"node_modules",
"bower_components",
"jspm_packages",
"dist"
],
"compilerOptions": {
"module": "esnext",
"lib": ["dom", "esnext"],
Expand Down
10 changes: 0 additions & 10 deletions templates/react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"include": ["src", "types", "test"],
"exclude": [
"**/*.spec.ts",
"**/*.test.ts",
"**/*.spec.tsx",
"**/*.test.tsx",
"node_modules",
"bower_components",
"jspm_packages",
"dist"
],
"compilerOptions": {
"module": "esnext",
"lib": ["dom", "esnext"],
Expand Down