<commit_before>import { copySync } from 'fs-extra';
import { ngPackagr } from 'ng-packagr';
import { join } from 'path';
import * as rimraf from 'rimraf';

const CORE_MODULE_NAMES = ['uiroutermodule', 'routerlessmodule'];

// Rollup globals
const MODULE_NAMES = [
  'adobeanalytics',
  'appinsights',
  'baidu',
  'facebook',
  'ga',
  'ga-enhanced-ecom',
  'gtm',
  'gst',
  'hubspot',
  'kissmetrics',
  'launch',
  'mixpanel',
  'piwik',
  'segment',
  'intercom',
  'woopra',
  'clicky',
  'amplitude',
  'splunk',
  'ibm-digital-analytics',
];


async function main() {
  // cleanup dist
  rimraf.sync(join(process.cwd(), '/dist'));
  rimraf.sync(join(process.cwd(), '/node_modules/angulartics2'));

  await ngPackagr()
    .forProject(join(process.cwd(), 'src/lib/core/package.json'))
    .build();

  // put it in node modules so the path resolves
  // proper path support eventually
  copySync(
    join(process.cwd(), '/dist/core'),<commit_msg>add gosquared to build file<commit_after>import { copySync } from 'fs-extra';
import { ngPackagr } from 'ng-packagr';
import { join } from 'path';
import * as rimraf from 'rimraf';

const CORE_MODULE_NAMES = ['uiroutermodule', 'routerlessmodule'];

// Rollup globals
const MODULE_NAMES = [
  'adobeanalytics',
  'appinsights',
  'baidu',
  'facebook',
  'ga',
  'ga-enhanced-ecom',
  'gtm',
  'gst',
  'hubspot',
  'kissmetrics',
  'launch',
  'mixpanel',
  'piwik',
  'segment',
  'intercom',
  'woopra',
  'clicky',
  'amplitude',
  'splunk',
  'ibm-digital-analytics',
  'gosquared',
];


async function main() {
  // cleanup dist
  rimraf.sync(join(process.cwd(), '/dist'));
  rimraf.sync(join(process.cwd(), '/node_modules/angulartics2'));

  await ngPackagr()
    .forProject(join(process.cwd(), 'src/lib/core/package.json'))
    .build();

  // put it in node modules so the path resolves
  // proper path support eventually
  copySync(
    join(process.cwd(), '/dist/core'),
{'fraction_non_alphanumeric': 0.179328165374677, 'fraction_numerical': 0.0010335917312661498, 'mean_word_length': 3.9137055837563453, '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': '2506237', 'n_tokens_mistral': 733, 'n_tokens_neox': 730, 'n_words': 154}