Repository navigation
Expand file tree
/
Copy pathtsconfig.json
More file actions
42 lines (42 loc) · 1.66 KB
/
Copy pathtsconfig.json
File metadata and controls
42 lines (42 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"compilerOptions": {
"rootDir": ".",
"paths": {
"@op-engineering/op-sqlite": ["./src/index"],
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"customConditions": ["react-native-strict-api"],
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react-jsx",
"lib": ["ESNext"],
"module": "ESNext",
"moduleResolution": "bundler",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ESNext",
// Needed for `global` (functions.ts) and `ImportMeta.url` (functions.web.ts).
// TS 7 stopped auto-including visible @types packages, so this must be explicit.
"types": ["node"],
"verbatimModuleSyntax": true,
},
// "example/ios" now contains build/generated/autolinking/libs/<dep> —
// symlinks into node_modules created by SwiftPM's autolinker for
// self-managed deps (react-native-safe-area-context, react-native-restart).
// Since the symlink itself lives outside node_modules, tsc's automatic
// node_modules exclusion doesn't cover it, and it pulls those deps' own
// .ts/.tsx source (with their own, unrelated type errors) into our
// typecheck. CocoaPods never generated anything under example/ios/build,
// so this didn't come up before SwiftPM support was added.
// "node" has its own tsconfig.json (with jest/node ambient types) and is
// typechecked separately via `yarn build:node`.
"exclude": ["docs", "example/ios", "node"],
}