-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrollup.config.js
More file actions
24 lines (23 loc) · 660 Bytes
/
rollup.config.js
File metadata and controls
24 lines (23 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import typescript from '@rollup/plugin-typescript';
import resolve from '@rollup/plugin-node-resolve';
export default [
{
input: 'src/index.ts',
output: {
file: 'dist/index.js',
format: 'es',
},
plugins: [resolve(), typescript({ declaration: true, declarationDir: 'dist' })],
external: ['commander', 'glob', 'jimp', 'fs', 'path', 'child_process', 'url'],
},
{
input: 'src/cli.ts',
output: {
file: 'dist/cli.js',
format: 'es',
banner: '#!/usr/bin/env node',
},
plugins: [resolve(), typescript()],
external: ['commander', 'glob', 'jimp', 'fs', 'path', 'child_process', 'url'],
},
];