build: remove local yarn (#19981)

We use the globally installed yarn now. The local yarn was used in
`check-environment.js` only, which results in the `--integrity` check
always failing (if dependencies were installed with the global yarn).
This commit is contained in:
George Kalpakas
2017-11-03 00:11:34 +02:00
committed by Victor Berchet
parent 067e926c08
commit 37a740b5b2
3 changed files with 2 additions and 8 deletions

View File

@ -17,8 +17,7 @@ var PROJECT_ROOT = path.join(__dirname, '../../');
// tslint:disable:no-console
function checkNodeModules(logOutput, purgeIfStale) {
var yarnCheck = childProcess.spawnSync(
'./node_modules/.bin/yarn check --integrity',
{shell: true, cwd: path.resolve(__dirname, '../..')});
'yarn check --integrity', {shell: true, cwd: path.resolve(__dirname, '../..')});
var nodeModulesOK = yarnCheck.status === 0;
if (nodeModulesOK) {