@samitouri / QOS-React-2 / commits / ad07be755d

Release script does a fresh Yarn install of deps (#12149)

This would have caught the recent Yarn workspaces / semver issue sooner.

Brian Vaughn committed Feb 4, 2018 at 17:06 UTC ad07be755d924191905b4995d1183492fb5e0401
1 file changed +4 -1
scripts/release/build-commands/install-yarn-dependencies.js
+4 -1
@@ -5,7 +5,10 @@
5 const {exec} = require('child-process-promise');
6 const {logPromise} = require('../utils');
7
8 -const install = async ({cwd}) => await exec('yarn', {cwd});
8 +const install = async ({cwd}) => {
9 + await exec('rm -rf node_modules', {cwd});
10 + await exec('yarn', {cwd});
11 +};
12
13 module.exports = async ({cwd}) => {
14 return logPromise(install({cwd}), 'Installing NPM dependencies');