element-web/tsconfig.json
James Salter e4722ee457 Override posthog type definitions to point to a locally fixed type definition file
Posthog's type definitions refer to types in transitive dependencies we don't want to include.

Clone posthog.d.ts locally, remove the offending types from it, and provide an overriding mapping in tsconfig.

If this proves annoying to maintain, posthog.d.ts could just be an empty file.
2021-07-28 17:14:36 +01:00

36 lines
682 B
JSON

{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es2016",
"noImplicitAny": false,
"sourceMap": false,
"outDir": "./lib",
"declaration": true,
"jsx": "react",
"types": [
"node",
"react",
"flux",
"react-transition-group"
],
"lib": [
"es2019",
"dom",
"dom.iterable"
],
"paths": {
"posthog-js": [
"./src/@types/posthog.d.ts"
]
}
},
"include": [
"./src/**/*.ts",
"./src/**/*.tsx"
],
}