mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 21:06:57 +00:00
5854ef865c
* Generate ADMX/ADML policy declaration files from static analysis Fixes: #148941 * fix build * move to optional dependencies
25 lines
904 B
JavaScript
25 lines
904 B
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
const path = require('path');
|
|
const fs = require('fs');
|
|
|
|
// make sure we install the deps of build for the system installed
|
|
// node, since that is the driver of gulp
|
|
function setupBuildYarnrc() {
|
|
const yarnrcPath = path.join(path.dirname(__dirname), '.yarnrc');
|
|
const yarnrc = `disturl "https://nodejs.org/download/release"
|
|
target "${process.versions.node}"
|
|
runtime "node"
|
|
arch "${process.arch}"`;
|
|
|
|
fs.writeFileSync(yarnrcPath, yarnrc, 'utf8');
|
|
}
|
|
|
|
exports.setupBuildYarnrc = setupBuildYarnrc;
|
|
|
|
if (require.main === module) {
|
|
setupBuildYarnrc();
|
|
}
|