* chore: release v4.4.0 * fix: changelog * fix(ci): Split dts building to own process for all packages * fix: remove unused import * fix: remove unused import * update yarn cache key * fix: better dependency management
23 lines
485 B
JavaScript
23 lines
485 B
JavaScript
import { dts } from 'rollup-plugin-dts';
|
|
|
|
const externalsForTypes = [
|
|
/^preact(\/|$)/,
|
|
/^preact\/jsx-runtime$/,
|
|
/^react(\/|$)/,
|
|
/^react-dom(\/|$)/,
|
|
/^@types\/react(\/|$)/,
|
|
/^@ai-sdk\/react(\/|$)/,
|
|
];
|
|
|
|
export default [
|
|
{
|
|
input: 'dist/esm/types/index.d.ts',
|
|
output: [{ file: 'dist/esm/index.d.ts', format: 'es' }],
|
|
external: (id) => externalsForTypes.some((rx) => rx.test(id)),
|
|
plugins: [
|
|
dts({
|
|
respectExternal: true,
|
|
}),
|
|
],
|
|
},
|
|
];
|