Skip to content

Commit

Permalink
fix(prepare-travis): Always use JSON output of the command
Browse files Browse the repository at this point in the history
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 <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Feb 11, 2020
1 parent ba016ee commit e7b7a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/prepare-travis.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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('/');
Expand Down

0 comments on commit e7b7a2b

Please sign in to comment.