2023-04-01 02:53:09 -05:00
|
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
|
|
import json from '@rollup/plugin-json';
|
|
|
|
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
|
|
import typescript from '@rollup/plugin-typescript';
|
|
|
|
import { summary } from 'rollup-plugin-summary';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {import('rollup').RollupOptions}
|
|
|
|
*/
|
|
|
|
const configs = [
|
|
|
|
{
|
|
|
|
input: ['src/index.ts'],
|
|
|
|
output: [{ dir: 'lib' }],
|
|
|
|
external: ['zod', 'got', '@logto/connector-kit'],
|
|
|
|
plugins: [
|
|
|
|
typescript({ tsconfig: 'tsconfig.build.json' }),
|
2023-04-24 03:19:23 -05:00
|
|
|
nodeResolve({ exportConditions: ['node'] }),
|
2023-04-01 02:53:09 -05:00
|
|
|
commonjs(),
|
|
|
|
json(),
|
|
|
|
summary(),
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export default configs;
|