Skip to content

Commit fa275bf

Browse files
committed
Improve TypeScript config
1 parent 3883535 commit fa275bf

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

packages/react-date-picker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"prepack": "yarn clean && yarn build",
9090
"prettier": "prettier --check . --cache",
9191
"test": "yarn lint && yarn tsc && yarn prettier && yarn unit",
92-
"tsc": "tsc --noEmit",
92+
"tsc": "tsc",
9393
"unit": "vitest",
9494
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & nodemon --watch src --ext css --exec \"yarn copy-styles\""
9595
},

packages/react-date-picker/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
"jsx": "react",
77
"module": "esnext",
88
"moduleResolution": "node",
9+
"noEmit": true,
910
"noUncheckedIndexedAccess": true,
1011
"outDir": "dist",
1112
"strict": true,
1213
"target": "es5",
1314
"verbatimModuleSyntax": true
1415
},
15-
"include": ["src"]
16+
"exclude": ["dist"]
1617
}

sample/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"jsx": "react-jsx",
77
"module": "esnext",
88
"moduleResolution": "bundler",
9+
"noEmit": true,
910
"noUncheckedIndexedAccess": true,
1011
"outDir": "dist",
1112
"strict": true,

test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
1212
"prettier": "prettier --check . --cache",
1313
"test": "yarn lint && yarn tsc && yarn prettier",
14-
"tsc": "tsc --noEmit"
14+
"tsc": "tsc"
1515
},
1616
"author": {
1717
"name": "Wojciech Maj",

test/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"jsx": "react-jsx",
77
"module": "esnext",
88
"moduleResolution": "bundler",
9+
"noEmit": true,
910
"noUncheckedIndexedAccess": true,
1011
"outDir": "dist",
1112
"strict": true,

0 commit comments

Comments
 (0)