mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
30 lines
634 B
JavaScript
30 lines
634 B
JavaScript
import ts from 'rollup-plugin-typescript2';
|
|
import pkg from './package.json';
|
|
|
|
export default {
|
|
input: 'src/index.ts',
|
|
external: [...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {})],
|
|
output: [
|
|
{
|
|
file: pkg.main, // CommonJS (for Node) build.
|
|
format: 'cjs',
|
|
sourcemap: true,
|
|
},
|
|
{
|
|
file: pkg.module, // ES module (for bundlers) build.
|
|
format: 'es',
|
|
sourcemap: true,
|
|
},
|
|
],
|
|
plugins: [
|
|
ts({
|
|
tsconfigOverride: {
|
|
compilerOptions: {
|
|
baseUrl: '.',
|
|
},
|
|
},
|
|
useTsconfigDeclarationDir: true,
|
|
}),
|
|
],
|
|
};
|