mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
21 lines
401 B
JavaScript
21 lines
401 B
JavaScript
import typescript from '@rollup/plugin-typescript';
|
|
|
|
/**
|
|
* @type {import('rollup').RollupOptions}
|
|
*/
|
|
const configs = [
|
|
{
|
|
input: ['src/index.ts'],
|
|
output: [
|
|
{
|
|
dir: 'lib',
|
|
format: 'cjs',
|
|
preserveModules: true,
|
|
entryFileNames: '[name].cjs',
|
|
},
|
|
],
|
|
plugins: [typescript({ tsconfig: 'tsconfig.build.json' })],
|
|
},
|
|
];
|
|
|
|
export default configs;
|