Generated types for the react package were broken because they were still using absolute imports which cannot work in standalone .d.ts files because they cannot rely on the local baseUrl compiler option. Thus, we introduced an alias that we are able to reliably replace during type generation.
14 lines
347 B
JSON
14 lines
347 B
JSON
{
|
|
"extends": "@openfun/typescript-configs/react.json",
|
|
"compilerOptions": {
|
|
"noEmit": true,
|
|
"paths": {
|
|
":/*": ["./src/*"]
|
|
},
|
|
"types": ["vitest/globals", "vite/client"]
|
|
},
|
|
"include": ["src", "cunningham.ts"],
|
|
"exclude": ["node_modules","dist", "**/tokens.ts"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
}
|