{"size": 738, "ext": "js", "max_stars_repo_path": "rollup.config.js", "max_stars_repo_name": "joemaddalone/gridset", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "rollup.config.js", "max_issues_repo_name": "joemaddalone/gridset", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "rollup.config.js", "max_forks_repo_name": "joemaddalone/gridset", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.1627906977, "max_line_length": 62, "alphanum_fraction": 0.5365853659}
import typescript from '@rollup/plugin-typescript';
import { terser } from 'rollup-plugin-terser';
import copy from 'rollup-plugin-copy';

const OUTPUT_DATA = [
  {
    input: 'src/index.ts',
    file: 'dist/index.esm.js',
    format: 'es',
  },
  {
    input: 'src/index-umd.ts',
    file: 'dist/index.js',
    format: 'umd',
  },
];

const config = OUTPUT_DATA.map(({ file, format, input }) => ({
  input,
  output: {
    file,
    format,
    name: 'Gridset',
  },
  external: [],
  watch: {
    include: 'src/**',
  },
  plugins: [
    typescript(),
    terser({
      format: {
        comments: false,
      },
    }),
    copy({
      targets: [{ src: 'src/gridset.d.ts', dest: 'dist' }],
    }),
  ],
}));

export default config;
