mirror of
https://github.com/videojs/video.js.git
synced 2026-11-20 06:29:27 +01:00
35 lines
1.2 KiB
JSON
35 lines
1.2 KiB
JSON
{
|
|
// Standalone on purpose — this drives `bob build`, which emits declarations
|
|
// into lib/typescript/src and validates them against package.json's "types".
|
|
// tsconfig.json is the composite config for the root project-reference graph;
|
|
// its declarationDir/include would redirect bob's output and break that check.
|
|
"compilerOptions": {
|
|
"rootDir": ".",
|
|
"paths": {
|
|
"@videojs/react-native": ["./src/index"]
|
|
},
|
|
"allowUnreachableCode": false,
|
|
"allowUnusedLabels": false,
|
|
"customConditions": ["react-native-source", "react-native-strict-api"],
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"jsx": "react-jsx",
|
|
"lib": ["ESNext"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"noEmit": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitReturns": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"target": "ESNext",
|
|
"verbatimModuleSyntax": true
|
|
},
|
|
// The Vite config is tooling, and tests import Vitest; neither belongs in the published declarations.
|
|
"exclude": ["lib", "types", "vite.config.ts", "src/**/tests"]
|
|
}
|