forked from Dwolla/dwolla-v2-node
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrollup.config.js
39 lines (38 loc) · 991 Bytes
/
rollup.config.js
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
import json from "@rollup/plugin-json";
import typescript from "rollup-plugin-typescript2";
import dts from "rollup-plugin-dts";
export default [
{
input: "./src/index.ts",
output: [
{
file: "./bundle/dwolla-v2.js",
format: "cjs"
},
{
file: "./bundle/dwolla-v2.mjs",
format: "esm"
}
],
plugins: [
json(),
typescript({
tsconfig: "./tsconfig.json",
tsconfigOverride: {
compilerOptions: {
declaration: false
}
}
})
],
external: ["form-data", "form-urlencoded", "node-fetch", "node:stream"]
},
{
input: "./build/dts/src/index.d.ts",
output: {
file: "./bundle/dwolla-v2.d.ts",
format: "es"
},
plugins: [dts()]
}
];