Skip to content

Commit

Permalink
fix(react-native): fix the tsc command for react-native and expo (#12888
Browse files Browse the repository at this point in the history
)
  • Loading branch information
xiongemi authored Nov 17, 2022
1 parent fc2e6be commit b9bedff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"jsx": "react-native",
"lib": ["dom", "esnext"],
"moduleResolution": "node",
"noEmit": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"strict": true
"strict": true,
"composite": true,
"declaration": true
},
"files": [
"../../node_modules/@nrwl/expo/typings/svg.d.ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"jsx": "react-native",
"lib": ["dom", "esnext"],
"moduleResolution": "node",
"noEmit": true,
"skipLibCheck": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"composite": true,
"declaration": true
},
"files": [
"../../node_modules/@nrwl/react-native/typings/svg.d.ts"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "<%= rootTsConfigPath %>",
"compilerOptions": {
"jsx": "react-jsx",
"jsx": "react-native",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "<%= offsetFromRoot %>dist/out-tsc",
"types": ["node"],
"jsx": "react-native"
"types": ["node"]
},
"exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.spec.tsx", "test-setup.ts"],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
Expand Down

0 comments on commit b9bedff

Please sign in to comment.