<commit_before>import typescript from 'rollup-plugin-typescript2';
// import cfg from './tsconfig.json';

const isProduction = process.env.NODE_ENV === 'production';
const entryName = 'aurelia-validation';
// const defaultCfg = { ...cfg, include: ['src'], exclude: undefined };

// defaultCfg.compilerOptions.module = 'es2015';
// defaultCfg.compilerOptions.noEmitHelpers = true;
// defaultCfg.compilerOptions.importHelpers = true;

export default [{
  input: `src/${entryName}.ts`,
  output: {
    file: `dist/es2015/${entryName}.js`,
    format: 'es'
  },
  external: 'tslib',
  plugins: [
    typescript({
      useTsconfigDeclarationDir: true,
      // tsconfigDefaults: defaultCfg,
      // tsconfig: undefined,
      tsconfigOverride: {
        compilerOptions: {
          module: 'es2015',
          target: 'es2015',
          declarationDir: 'dist/types'
        },
        include: ['src'],
        exclude: undefined
      },
      cacheRoot: '.rollupcache'
    })
  ]
}].concat(!isProduction
  ? []
  : [
    {
      input: `src/${entryName}.ts`,
      output: {
        file: `dist/es2017/${entryName}.js`,
        format: 'es',
      },
      external: 'tslib',
      plugins: [
        typescript({
          // tsconfigDefaults: defaultCfg,
          // tsconfig: undefined,
          tsconfigOverride: {
            compilerOptions: {
              module: 'es2015',
              target: 'es2017',
              declaration: false
            },
            include: ['src'],
            exclude: undefined
          },
          cacheRoot: '.rollupcache'
        })
      ]
    },
    {
      input: `src/${entryName}.ts`,
      output: [
        { file: `dist/commonjs/${entryName}.js`, format: 'cjs' },
        { file: `dist/amd/${entryName}.js`, format: 'amd', amd: { id: entryName } },
        { file: `dist/native-modules/${entryName}.js`, format: 'es' },
        { file: `dist/system/${entryName}.js`, format: 'system' }
      ],
      external: 'tslib',
      plugins: [
        typescript({
          // tsconfigDefaults: defaultCfg,
          // tsconfig: undefined,
          tsconfigOverride: {
            compilerOptions: {
              module: 'es2015',
              declaration: false
            },
            include: ['src'],
            exclude: undefined
          },
          cacheRoot: '.rollupcache',
        })
      ]
    }
  ]
);<commit_msg>inline helpers from tslib<commit_after>import typescript from 'rollup-plugin-typescript2';
// import cfg from './tsconfig.json';

const isProduction = process.env.NODE_ENV === 'production';
const entryName = 'aurelia-validation';
// const defaultCfg = { ...cfg, include: ['src'], exclude: undefined };

// defaultCfg.compilerOptions.module = 'es2015';
// defaultCfg.compilerOptions.noEmitHelpers = true;
// defaultCfg.compilerOptions.importHelpers = true;

export default [{
  input: `src/${entryName}.ts`,
  output: {
    file: `dist/es2015/${entryName}.js`,
    format: 'es'
  },
  plugins: [
    typescript({
      useTsconfigDeclarationDir: true,
      // tsconfigDefaults: defaultCfg,
      // tsconfig: undefined,
      tsconfigOverride: {
        compilerOptions: {
          module: 'es2015',
          target: 'es2015',
          declarationDir: 'dist/types'
        },
        include: ['src'],
        exclude: undefined
      },
      cacheRoot: '.rollupcache'
    })
  ]
}].concat(!isProduction
  ? []
  : [
    {
      input: `src/${entryName}.ts`,
      output: {
        file: `dist/es2017/${entryName}.js`,
        format: 'es',
      },
      plugins: [
        typescript({
          // tsconfigDefaults: defaultCfg,
          // tsconfig: undefined,
          tsconfigOverride: {
            compilerOptions: {
              module: 'es2015',
              target: 'es2017',
              declaration: false
            },
            include: ['src'],
            exclude: undefined
          },
          cacheRoot: '.rollupcache'
        })
      ]
    },
    {
      input: `src/${entryName}.ts`,
      output: [
        { file: `dist/commonjs/${entryName}.js`, format: 'cjs' },
        { file: `dist/amd/${entryName}.js`, format: 'amd', amd: { id: entryName } },
        { file: `dist/native-modules/${entryName}.js`, format: 'es' },
        { file: `dist/system/${entryName}.js`, format: 'system' }
      ],
      plugins: [
        typescript({
          // tsconfigDefaults: defaultCfg,
          // tsconfig: undefined,
          tsconfigOverride: {
            compilerOptions: {
              module: 'es2015',
              declaration: false
            },
            include: ['src'],
            exclude: undefined
          },
          cacheRoot: '.rollupcache',
        })
      ]
    }
  ]
);
{'fraction_non_alphanumeric': 0.15202201990260428, 'fraction_numerical': 0.013974168960406522, 'mean_word_length': 1.8457831325301204, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '182597', 'n_tokens_mistral': 1403, 'n_tokens_neox': 1372, 'n_words': 263}