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.
This commit is contained in:
parent
d6c7481661
commit
356f96f77b
@ -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' }],
|
output: [{ file: 'dist/index.d.ts', format: 'es' }],
|
||||||
plugins: [
|
plugins: [
|
||||||
aliasConfig,
|
aliasConfig,
|
||||||
@ -87,6 +87,6 @@ export default [
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
external: [/\.css$/, /\.d\.ts$/], // ✅ `.d.ts` als extern behandeln
|
external: [/\.css$/, /\.d\.ts$/],
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@ -37,8 +37,6 @@ export {
|
|||||||
} from './Components/Templates'
|
} from './Components/Templates'
|
||||||
export { TextInput, TextAreaInput, SelectBox } from './Components/Input'
|
export { TextInput, TextAreaInput, SelectBox } from './Components/Input'
|
||||||
|
|
||||||
export * from './types'
|
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
my_modal_3: {
|
my_modal_3: {
|
||||||
|
|||||||
@ -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'
|
|
||||||
Loading…
x
Reference in New Issue
Block a user