Skip to content

Commit c802b8b

Browse files
committed
feat: add noEmit to templates' tsconfigs
- for ease of use when using `tsc` for type-checking, which a lot of users already do - it doesn't fully type-check everything though, since we'd need to split off a tsconfig.build.json in order to let builds only run on `src` while type-checking would run on all files - but people already using `tsc --noEmit`, so might as well start supporting this as it's not uncommon - also add to all fixtures - yea some centralization/extends or dogfooding create would help reduce all this duplication
1 parent e0f79fe commit c802b8b

File tree

9 files changed

+15
-6
lines changed

9 files changed

+15
-6
lines changed

templates/basic/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
"esModuleInterop": true,
1818
"skipLibCheck": true,
1919
"forceConsistentCasingInFileNames": true,
20+
"noEmit": true,
2021
}
2122
}

templates/react-with-storybook/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
"esModuleInterop": true,
1818
"skipLibCheck": true,
1919
"forceConsistentCasingInFileNames": true,
20+
"noEmit": true,
2021
}
2122
}

templates/react/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
"esModuleInterop": true,
1818
"skipLibCheck": true,
1919
"forceConsistentCasingInFileNames": true,
20+
"noEmit": true,
2021
}
2122
}

test/e2e/fixtures/build-default/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"jsx": "react",
1515
"esModuleInterop": true,
1616
"skipLibCheck": true,
17-
"forceConsistentCasingInFileNames": true
17+
"forceConsistentCasingInFileNames": true,
18+
"noEmit": true
1819
},
1920
"include": ["src", "types"]
2021
}

test/e2e/fixtures/build-invalid/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"jsx": "react",
1515
"esModuleInterop": true,
1616
"skipLibCheck": true,
17-
"forceConsistentCasingInFileNames": true
17+
"forceConsistentCasingInFileNames": true,
18+
"noEmit": true
1819
},
1920
"include": ["src", "types"]
2021
}

test/e2e/fixtures/build-withTsconfig/tsconfig.base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"jsx": "react",
1717
"esModuleInterop": false,
1818
"skipLibCheck": true,
19-
"forceConsistentCasingInFileNames": true
19+
"forceConsistentCasingInFileNames": true,
20+
"noEmit": true
2021
},
2122
"include": ["src", "types"], // test parsing of trailing comma & comment
2223
}

test/integration/fixtures/build-options/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"jsx": "react",
1515
"esModuleInterop": true,
1616
"skipLibCheck": true,
17-
"forceConsistentCasingInFileNames": true
17+
"forceConsistentCasingInFileNames": true,
18+
"noEmit": true
1819
},
1920
"include": ["src", "types"],
2021
}

test/integration/fixtures/build-withBabel/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"jsx": "react",
1515
"esModuleInterop": true,
1616
"skipLibCheck": true,
17-
"forceConsistentCasingInFileNames": true
17+
"forceConsistentCasingInFileNames": true,
18+
"noEmit": false
1819
},
1920
"include": ["src", "types"],
2021
}

test/integration/fixtures/build-withConfig/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"jsx": "react",
1515
"esModuleInterop": true,
1616
"skipLibCheck": true,
17-
"forceConsistentCasingInFileNames": true
17+
"forceConsistentCasingInFileNames": true,
18+
"noEmit": true
1819
},
1920
"include": ["src", "types"],
2021
}

0 commit comments

Comments
 (0)