mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
3c0477a894
* fix(connector): enable node crypto.getRandomValues * refactor: remove comments --------- Co-authored-by: Gao Sun <gao@silverhand.io>
25 lines
644 B
JavaScript
25 lines
644 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({ exportConditions: ['node'] }),
|
|
commonjs(),
|
|
json(),
|
|
summary(),
|
|
],
|
|
},
|
|
];
|
|
|
|
export default configs;
|