rollup-plugin-typescript2/rollup.config.ts
2017-06-23 17:36:29 -06:00

42 lines
595 B
TypeScript

import { typescript } from ".";
import * as rollup from "rollup";
// tslint:disable-next-line:no-var-requires
const pkg = require("./package.json");
export const options = {
entry: "src/index.ts",
external: [
"path",
"fs-extra",
"object-assign",
"rollup-pluginutils",
"typescript",
"lodash",
"graphlib",
"object-hash",
"colors/safe",
"resolve",
],
plugins: [
typescript({ verbosity: 3 }),
],
banner: "/* eslint-disable */",
targets: [
{
format: "cjs",
dest: pkg.main,
},
{
format: "es",
dest: pkg.module,
},
],
};
rollup.rollup(options);