Skip to content

Commit

Permalink
Type check .server/.client dirs in Vite templates (remix-run#8899)
Browse files Browse the repository at this point in the history
  • Loading branch information
wahyubucil authored and IgnusG committed Mar 4, 2024
1 parent c782da4 commit f95b133
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@
- vm
- vmosyaykin
- vorcigernix
- wahyubucil
- wangbinyq
- weavdale
- wilcoschoneveld
Expand Down
9 changes: 8 additions & 1 deletion templates/vite-cloudflare/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"include": ["**/*.ts", "**/*.tsx"],
"include": [
"**/*.ts",
"**/*.tsx",
"**/.server/**/*.ts",
"**/.server/**/*.tsx",
"**/.client/**/*.ts",
"**/.client/**/*.tsx"
],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": ["@remix-run/cloudflare", "vite/client"],
Expand Down
9 changes: 8 additions & 1 deletion templates/vite-express/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"include": ["**/*.ts", "**/*.tsx"],
"include": [
"**/*.ts",
"**/*.tsx",
"**/.server/**/*.ts",
"**/.server/**/*.tsx",
"**/.client/**/*.ts",
"**/.client/**/*.tsx"
],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": ["@remix-run/node", "node", "vite/client"],
Expand Down
9 changes: 8 additions & 1 deletion templates/vite/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"include": ["**/*.ts", "**/*.tsx"],
"include": [
"**/*.ts",
"**/*.tsx",
"**/.server/**/*.ts",
"**/.server/**/*.tsx",
"**/.client/**/*.ts",
"**/.client/**/*.tsx"
],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": ["@remix-run/node", "node", "vite/client"],
Expand Down

0 comments on commit f95b133

Please sign in to comment.