<commit_before>#!/usr/bin/env node

'use strict';

const {exec} = require('child-process-promise');
const {logPromise} = require('../utils');

const install = async ({cwd}) => await exec('yarn', {cwd});

module.exports = async ({cwd}) => {
  return logPromise(install({cwd}), 'Installing NPM dependencies');
};<commit_msg>Release script does a fresh Yarn install of deps (#12149)<commit_after>#!/usr/bin/env node

'use strict';

const {exec} = require('child-process-promise');
const {logPromise} = require('../utils');

const install = async ({cwd}) => {
  await exec('rm -rf node_modules', {cwd});
  await exec('yarn', {cwd});
};

module.exports = async ({cwd}) => {
  return logPromise(install({cwd}), 'Installing NPM dependencies');
};
{'fraction_non_alphanumeric': 0.20433017591339647, 'fraction_numerical': 0.006765899864682003, 'mean_word_length': 5.379310344827586, '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': '3313192', 'n_tokens_mistral': 250, 'n_tokens_neox': 244, 'n_words': 64}