From e7b7a2be60cacabde185c6177463bbbb099abe05 Mon Sep 17 00:00:00 2001 From: Florent Benoit Date: Mon, 10 Feb 2020 13:59:44 +0100 Subject: [PATCH] fix(prepare-travis): Always use JSON output of the command With yarn v1.22.0 the output is not rendered in JSON when it's the last parameter Change-Id: I98a0d59a98e3e3226cbc242c1a5e264aaa6fd607 Signed-off-by: Florent Benoit --- scripts/prepare-travis.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prepare-travis.js b/scripts/prepare-travis.js index c5da14728ddd3..77b7415714e44 100644 --- a/scripts/prepare-travis.js +++ b/scripts/prepare-travis.js @@ -1,6 +1,6 @@ #!/usr/bin/env node /******************************************************************************** - * Copyright (c) 2018 TypeFox and others + * Copyright (c) 2018-2020 TypeFox and others * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at @@ -27,7 +27,7 @@ const os = require('os'); const directories = ['node_modules']; -const workspaces = JSON.parse(JSON.parse(child_process.execSync('yarn workspaces info --json').toString()).data); +const workspaces = JSON.parse(JSON.parse(child_process.execSync('yarn workspaces --json info').toString()).data); for (const name in workspaces) { const workspace = workspaces[name]; const nodeModulesPath = [workspace.location, 'node_modules'].join('/');