Files
azuredatastudio/build/tfs/common/installDistro.js
2019-02-21 17:56:04 -08:00

15 lines
682 B
JavaScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
var cp = require('child_process');
function yarnInstall(package) {
cp.execSync("yarn add --no-lockfile " + package);
}
var product = require('../../../product.json');
var dependencies = product.dependencies || {};
Object.keys(dependencies).forEach(function (name) {
var url = dependencies[name];
yarnInstall(url);
});