forked from LooksRare/sdk-v2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrollup.config.js
36 lines (35 loc) · 950 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
import typescript from "@rollup/plugin-typescript";
import json from "@rollup/plugin-json";
import copy from "rollup-plugin-copy";
import bundleSize from "rollup-plugin-bundle-size";
import dotenv from "rollup-plugin-dotenv";
import pkg from "./package.json";
import { nodeResolve } from "@rollup/plugin-node-resolve";
/** @type {import('rollup').RollupOptions} */
export default {
input: "src/index.ts",
output: [
{ file: pkg.main, format: "cjs" },
{ file: pkg.module, format: "es" },
],
plugins: [
dotenv.default(),
copy({
targets: [{ src: "src/abis/**/*", dest: "dist/abis" }],
}),
json(),
nodeResolve(),
typescript({ tsconfig: "./tsconfig.build.json" }),
bundleSize(),
],
external: [
"@supabase/supabase-js",
"ethers",
"@hypercerts-org/sdk",
"@hypercerts-org/contracts",
"merkletreejs",
"js-sha3",
"@safe-global/protocol-kit",
"@safe-global/api-kit",
],
};