<commit_before>const fs = require('fs');
const { PackageGraph } = require('@lerna/package-graph');
const { Project } = require('@lerna/project');
const { getFilteredPackages } = require('@lerna/filter-options');
const { join, relative } = require('path');

const MODULE_COMPILER_OPTIONS_MAP = {
  cjs: {
    outDir: 'dist/cjs',
    module: 'commonjs',
  },
  esm5: {
    outDir: 'dist/esm5',
    module: 'es2015',
    target: 'es5',
  },
  esm2015: {
    outDir: 'dist/esm2015',
    module: 'es2015',
  },
  types: {
    outDir: 'dist/types',
    declaration: true,
    emitDeclarationOnly: true,
  },
};

(async () => {
  const cwd = join(__dirname, '..');
  const project = new Project(cwd);
  const packages = await project.getPackages();
  const packageGraph = new PackageGraph(packages);
  const filteredPackages = await getFilteredPackages(
    packageGraph,
    { cwd },
    { ignore: ['@jovotech/output', '@jovotech/output-*', '@jovotech/e2e', '@jovotech/examples-*'] },
  );

  const compilerOptionModuleKeys = Object.keys(MODULE_COMPILER_OPTIONS_MAP);

  const promises = [];
  for (const pkg of filteredPackages) {
    const relativePathToRoot = relative(pkg.location, cwd);
    const relativePathToBuildTsConfig = join(relativePathToRoot, 'tsconfig.build.json');
    const normalizedRelativePathToBuildTsConfig = relativePathToBuildTsConfig.replace(/\\/g, '/');

    const writePromises = compilerOptionModuleKeys.map((key) => {
      const tsconfig = {<commit_msg>:wrench: Update script for updating tsconfig files to not ignore output-packages<commit_after>const fs = require('fs');
const { PackageGraph } = require('@lerna/package-graph');
const { Project } = require('@lerna/project');
const { getFilteredPackages } = require('@lerna/filter-options');
const { join, relative } = require('path');

const MODULE_COMPILER_OPTIONS_MAP = {
  cjs: {
    outDir: 'dist/cjs',
    module: 'commonjs',
  },
  esm5: {
    outDir: 'dist/esm5',
    module: 'es2015',
    target: 'es5',
  },
  esm2015: {
    outDir: 'dist/esm2015',
    module: 'es2015',
  },
  types: {
    outDir: 'dist/types',
    declaration: true,
    emitDeclarationOnly: true,
  },
};

(async () => {
  const cwd = join(__dirname, '..');
  const project = new Project(cwd);
  const packages = await project.getPackages();
  const packageGraph = new PackageGraph(packages);
  const filteredPackages = await getFilteredPackages(
    packageGraph,
    { cwd },
    { ignore: ['@jovotech/e2e', '@jovotech/examples-*'] },
  );

  const compilerOptionModuleKeys = Object.keys(MODULE_COMPILER_OPTIONS_MAP);

  const promises = [];
  for (const pkg of filteredPackages) {
    const relativePathToRoot = relative(pkg.location, cwd);
    const relativePathToBuildTsConfig = join(relativePathToRoot, 'tsconfig.build.json');
    const normalizedRelativePathToBuildTsConfig = relativePathToBuildTsConfig.replace(/\\/g, '/');

    const writePromises = compilerOptionModuleKeys.map((key) => {
      const tsconfig = {
{'fraction_non_alphanumeric': 0.14803625377643503, 'fraction_numerical': 0.01342732460557234, 'mean_word_length': 4.129087779690189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5809759', 'n_tokens_mistral': 1008, 'n_tokens_neox': 962, 'n_words': 198}