forked from microsoft/package-inherit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
35 lines (34 loc) · 992 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
import typescript from "@rollup/plugin-typescript";
import nodeResolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import nodeExternals from "rollup-plugin-node-externals";
import progress from "rollup-plugin-progress";
export default [{
input: "src/index.ts",
output: {
format: "cjs",
file: "dist/package-inherit.js",
banner: "// DO NOT EDIT THIS FILE. This is generated code. Please see: https://github.com/microsoft/package-inherit"
},
plugins: [
typescript({ isolatedModules: true }),
nodeExternals(),
nodeResolve(),
commonjs(),
progress(),
]
}, {
input: "src/cli.ts",
output: {
format: "cjs",
file: "dist/package-inherit-cli.js",
banner: "// DO NOT EDIT THIS FILE. This is generated code. Please see: https://github.com/microsoft/package-inherit"
},
plugins: [
typescript({ isolatedModules: true }),
nodeExternals(),
nodeResolve(),
commonjs(),
progress(),
]
}];