Skip to content

Commit 7a2c416

Browse files
Prevent installing multiple versions of @types/react (#182)
1 parent c2c3961 commit 7a2c416

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

template/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
"react-test-renderer": "16.13.1",
2828
"typescript": "^3.8.3"
2929
},
30+
"resolutions": {
31+
"@types/react": "^16"
32+
},
3033
"jest": {
3134
"preset": "react-native",
3235
"moduleFileExtensions": [

template/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
4646
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
4747
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
48-
"skipLibCheck": true /* Skip type checking of declaration files. */
48+
"skipLibCheck": false /* Skip type checking of declaration files. */
4949

5050
/* Source Map Options */
5151
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */

0 commit comments

Comments
 (0)