Files
twenty/packages/twenty-sdk/rollup.config.sdk-dts.mjs
T
martmull d5ff9eb515 Create twenty app improvements (#20688)
create-twenty-app updates:
- remove --example option
- sync --once when scaffolding an applicaiton
- rename --api-url option to --workspace-url
- create a standalone page when scaffolding an app
<img width="1494" height="765" alt="image"
src="https://github.com/user-attachments/assets/0e35ed0c-b0aa-466c-9f56-7939294fd2cf"
/>

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-05-19 13:12:47 +00:00

52 lines
1.1 KiB
JavaScript

import dts from 'rollup-plugin-dts';
const external = (id) => {
if (id === 'twenty-shared' || id.startsWith('twenty-shared/')) {
return false;
}
if (id.startsWith('@/')) {
return false;
}
return !id.startsWith('.') && !id.startsWith('/');
};
const plugins = [
dts({
tsconfig: './tsconfig.lib.json',
respectExternal: true,
}),
];
export default [
{
input: 'src/sdk/define/index.ts',
output: { file: 'dist/define/index.d.ts', format: 'es' },
external,
plugins,
},
{
input: 'src/sdk/front-component/index.ts',
output: { file: 'dist/front-component/index.d.ts', format: 'es' },
external,
plugins,
},
{
input: 'src/sdk/billing/index.ts',
output: { file: 'dist/billing/index.d.ts', format: 'es' },
external,
plugins,
},
{
input: 'src/sdk/logic-function/index.ts',
output: { file: 'dist/logic-function/index.d.ts', format: 'es' },
external,
plugins,
},
{
input: 'src/sdk/utils/index.ts',
output: { file: 'dist/utils/index.d.ts', format: 'es' },
external,
plugins,
},
];