Skip to content

Commit

Permalink
fix(react-native): fix the tsc command for react-native and expo
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi committed Nov 14, 2022
1 parent 8d103f3 commit 527c0f3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
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
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
@@ -1,7 +1,7 @@
{
"extends": "<%= rootTsConfigPath %>",
"compilerOptions": {
"jsx": "react-jsx",
"jsx": "react-native"
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
Expand Down
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 527c0f3

Please sign in to comment.