Skip to content

Commit

Permalink
Improve TypeScript config
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Nov 8, 2023
1 parent 05f5c54 commit 665863c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-daterange-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"prepack": "yarn clean && yarn build",
"prettier": "prettier --check . --cache",
"test": "yarn lint && yarn tsc && yarn prettier && yarn unit",
"tsc": "tsc --noEmit",
"tsc": "tsc",
"unit": "vitest",
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & nodemon --watch src --ext css --exec \"yarn copy-styles\""
},
Expand Down
3 changes: 2 additions & 1 deletion packages/react-daterange-picker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"jsx": "react",
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"outDir": "dist",
"strict": true,
"target": "es5",
"verbatimModuleSyntax": true
},
"include": ["src"]
"exclude": ["dist"]
}
1 change: 1 addition & 0 deletions sample/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"jsx": "react-jsx",
"module": "esnext",
"moduleResolution": "bundler",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"outDir": "dist",
"strict": true,
Expand Down
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"prettier": "prettier --check . --cache",
"test": "yarn lint && yarn tsc && yarn prettier",
"tsc": "tsc --noEmit"
"tsc": "tsc"
},
"author": {
"name": "Wojciech Maj",
Expand Down
1 change: 1 addition & 0 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"jsx": "react-jsx",
"module": "esnext",
"moduleResolution": "bundler",
"noEmit": true,
"noUncheckedIndexedAccess": true,
"outDir": "dist",
"strict": true,
Expand Down

0 comments on commit 665863c

Please sign in to comment.