mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
* fix typeexport via rollup plugin by using the correct input The rollup plugin dts requires a d.ts tree as input not the txs sources. This change points the plugin into the right direction and removes the type export hacks. * corrected types path apparently this was not properly adjusted accross the board when moving the folder * fix rollup config properly export types * use export * where needed Since we now export types alongside with defintions we use the `export * from` syntax to simplify things * export types alongside with interfaces export types so we can properly use them in external projects alongside the exported function/module/... * fix type-problems uncovered by utopia-map When including types properly in the utopia-map several missing typings showed up. * fix typing fix an inhereted type * dummy restructure code to properly be able to compile things we are not allowed to have unsed parameters/props * assigne types to category types
37 lines
1.2 KiB
JSON
37 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"outDir": "dist",
|
|
"declaration": true,
|
|
"declarationDir": "dist/types", // 🔹 Muss innerhalb von dist/ liegen
|
|
"emitDeclarationOnly": true, // Nur `.d.ts` generieren, kein JavaScript
|
|
"module": "esnext",
|
|
"target": "ESNext",
|
|
"lib": ["es6", "dom","es2015", "es2016", "es2017", "es2020"],
|
|
"sourceMap": true,
|
|
"allowJs": false,
|
|
"jsx": "react-jsx",
|
|
"moduleResolution": "node",
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noImplicitReturns": true,
|
|
"noImplicitThis": true,
|
|
"strictNullChecks": true,
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"skipLibCheck": true,
|
|
"paths": {
|
|
"#components/*": ["./src/Components/*"],
|
|
"#utils/*": ["./src/Utils/*"],
|
|
"#types/*": ["./src/types/*"],
|
|
"#src/*": ["./src/*"],
|
|
"#root/*": ["./*"]
|
|
}
|
|
},
|
|
"include": ["src", "vite.config.ts", "setupTest.ts", "cypress.config.ts", "cypress/support/commands.ts", "cypress/support/component.ts"],
|
|
"exclude": ["node_modules", "dist", "example", "rollup.config.mjss"],
|
|
"typeRoots": [
|
|
"./src/types",
|
|
"./node_modules/@types/"
|
|
]
|
|
}
|