-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrollup.config.js
35 lines (31 loc) · 1 KB
/
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
import dts from "rollup-plugin-dts";
import pkg from "./package.json";
const compiledAt = new Date().toUTCString().replace(/GMT/g, "UTC");
const banner = [
`/*!`,
` * ${pkg.name} - v${pkg.version}`,
` * Compiled ${compiledAt}`,
` *`,
` * Generated by an automated process. DO NOT EDIT!`,
` *`,
` * Copyright 2022 Lottie Animation Community.`,
` *`,
` * Licensed under the MIT License,`,
` * You may obtain a copy of the License at:`,
` * https://github.com/lottie-animation-community/lottie-types/blob/main/LICENSE`,
` *`,
` * Type definitions for the Lottie animation format.`,
` * Definitions by: Aidos Sabit <https://github.com/aidosmf>.`,
` *`,
` * To report an issue with these types, please open a support ticket at:`,
` * https://github.com/lottie-animation-community/lottie-types/issues`,
` */`,
].join("\n");
const config = [
{
input: "./src/index.d.ts",
output: [{ banner, file: "./index.d.ts", format: "es" }],
plugins: [dts()],
},
];
export default config;