0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00
logto/packages/toolkit/language-kit/rollup.config.js

22 lines
401 B
JavaScript
Raw Normal View History

2022-12-14 13:23:59 +08:00
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;