Skip to content

Commit 5446288

Browse files
gorhomosdnk
authored andcommitted
fix: typescript to ignore example folder (#96)
I notice since my last PR #68, Typescript starts to include Example folder to the compiled build which breaks the types for this library.
1 parent 8ae6910 commit 5446288

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

Example/tsconfig.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"allowUnreachableCode": false,
5+
"allowUnusedLabels": false,
6+
"esModuleInterop": true,
7+
"forceConsistentCasingInFileNames": true,
8+
"jsx": "react",
9+
"lib": ["esnext"],
10+
"module": "esnext",
11+
"moduleResolution": "node",
12+
"noFallthroughCasesInSwitch": true,
13+
"noImplicitReturns": true,
14+
"noImplicitUseStrict": false,
15+
"noStrictGenericChecks": false,
16+
"noUnusedLocals": true,
17+
"noUnusedParameters": true,
18+
"resolveJsonModule": true,
19+
"skipLibCheck": true,
20+
"strict": true,
21+
"target": "esnext",
22+
"paths": {
23+
"reanimated-bottom-sheet": ["../src/index"]
24+
}
25+
},
26+
"include": ["src"]
27+
}

tsconfig.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"resolveJsonModule": true,
1919
"skipLibCheck": true,
2020
"strict": true,
21-
"target": "esnext",
22-
"paths": {
23-
"reanimated-bottom-sheet": ["./src/index"]
24-
}
25-
}
21+
"target": "esnext"
22+
},
23+
"include": ["src"]
2624
}

0 commit comments

Comments
 (0)