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.
This commit is contained in:
Ulf Gebhardt 2025-02-18 02:05:40 +01:00
parent d6c7481661
commit 356f96f77b
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 2 additions and 13 deletions

View File

@ -76,7 +76,7 @@ export default [
],
},
{
input: 'src/index.tsx',
input: 'dist/types/src/index.d.ts',
output: [{ file: 'dist/index.d.ts', format: 'es' }],
plugins: [
aliasConfig,
@ -87,6 +87,6 @@ export default [
},
}),
],
external: [/\.css$/, /\.d\.ts$/], // ✅ `.d.ts` als extern behandeln
external: [/\.css$/, /\.d\.ts$/],
},
]

View File

@ -37,8 +37,6 @@ export {
} from './Components/Templates'
export { TextInput, TextAreaInput, SelectBox } from './Components/Input'
export * from './types'
declare global {
interface Window {
my_modal_3: {

View File

@ -1,9 +0,0 @@
export type { ItemsApi } from './ItemsApi'
export type { Tag } from './Tag'
export type { Item } from './Item'
export type { Permission } from './Permission'
export type { LayerProps } from './LayerProps'
export type { UserApi } from './UserApi'
export type { UserItem } from './UserItem'
export type { UtopiaMapProps } from './UtopiaMapProps'
export type { AssetsApi } from './AssetsApi'