-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrollup.config.ts
41 lines (40 loc) · 892 Bytes
/
rollup.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import typescript from '@rollup/plugin-typescript';
import json from '@rollup/plugin-json';
import terser from '@rollup/plugin-terser';
import { defineConfig } from 'rollup';
export default defineConfig([
{
input: 'src/index.ts',
output: [
{
file: './dist/index.js',
format: 'cjs',
banner: `#!/usr/bin/env node`,
sourcemap: false,
},
],
plugins: [typescript(), json(), terser()],
},
{
input: 'src/process/diffProcess.ts',
output: [
{
file: './dist/process/diffProcess.js',
format: 'cjs',
sourcemap: false,
},
],
plugins: [typescript(), json()],
},
{
input: 'src/process/requestGen.ts',
output: [
{
file: './dist/process/requestGen.js',
format: 'cjs',
sourcemap: false,
},
],
plugins: [typescript(), json()],
},
]);