<commit_before>var execSync = require('child_process').execSync
var readFileSync = require('fs').readFileSync
var prettyBytes = require('pretty-bytes')
var gzipSize = require('gzip-size')

function exec(command) {
  execSync(command, { stdio: [0, 1, 2] })
}

exec('npm run build')
exec('npm run build-umd')
exec('npm run build-min')

console.log(
  '\ngzipped, the UMD build is ' + prettyBytes(
    gzipSize.sync(readFileSync('umd/ReactRouter.min.js'))
  )
)<commit_msg>typo - refer to TxRegions.min.js not ReactRouter.min.js (the build facilities, etc., of this repo were derived from the react router repo - see README.md)<commit_after>var execSync = require('child_process').execSync
var readFileSync = require('fs').readFileSync
var prettyBytes = require('pretty-bytes')
var gzipSize = require('gzip-size')

function exec(command) {
  execSync(command, { stdio: [0, 1, 2] })
}

exec('npm run build')
exec('npm run build-umd')
exec('npm run build-min')

console.log(
  '\ngzipped, the UMD build is ' + prettyBytes(
    gzipSize.sync(readFileSync('umd/TxRegions.min.js'))
  )
)
{'fraction_non_alphanumeric': 0.15013901760889714, 'fraction_numerical': 0.005560704355885079, 'mean_word_length': 5.136363636363637, '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': '3778404', 'n_tokens_mistral': 383, 'n_tokens_neox': 369, 'n_words': 93}