0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/connectors/templates/preset/rollup.config.js
Gao Sun 6b322a537c
refactor: add connector packages
the initial commit to move all connector packages to the main
repo.
2023-04-01 15:53:14 +08:00

25 lines
614 B
JavaScript

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' }),
nodeResolve(),
commonjs(),
json(),
summary(),
],
},
];
export default configs;