react/scripts/release/build-commands/install-yarn-dependencies.js
Brian Vaughn ad07be755d
Release script does a fresh Yarn install of deps (#12149)
This would have caught the recent Yarn workspaces / semver issue sooner.
2018-02-04 17:06:14 -08:00

16 lines
347 B
JavaScript

#!/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');
};