The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import dts from 'rollup-plugin-dts';
const external = (id) => {
if (id === 'twenty-shared' || id.startsWith('twenty-shared/')) {
return false;
}
if (id === 'zod' || id.startsWith('zod/')) {
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/front-component-renderer/index.ts',
output: { file: 'dist/front-component-renderer/index.d.ts', format: 'es' },
external,
plugins,
},
{
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,
},
];