yarn: initial commit

This commit is contained in:
Joao Moreno
2017-11-13 22:36:57 +01:00
parent 4e172cd197
commit c04085ad84
6 changed files with 5992 additions and 21 deletions

View File

@@ -3,13 +3,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
if (process.env['npm_config_disturl'] !== 'https://atom.io/download/electron') {
console.error("You can't use plain npm to install Code's dependencies.");
console.error(
/^win/.test(process.platform)
? "Please run '.\\scripts\\npm.bat install' instead."
: "Please run './scripts/npm.sh install' instead."
);
if (!/yarn\.js$/.test(process.env['npm_execpath'])) {
console.error('*** Please use yarn to install dependencies.\n');
process.exit(1);
}
}