File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*---------------------------------------------------------------------------------------------
2+ * Copyright (c) Microsoft Corporation. All rights reserved.
3+ * Licensed under the MIT License. See License.txt in the project root for license information.
4+ *--------------------------------------------------------------------------------------------*/
5+
6+ var win = "Please run '.\\scripts\\npm.bat install' instead."
7+ var nix = "Please run './scripts/npm.sh install' instead."
8+
9+ if ( process . env [ 'npm_config_disturl' ] !== 'https://atom.io/download/atom-shell' ) {
10+ console . error ( "You can't use plain npm to install Code's dependencies." ) ;
11+ console . error ( / ^ w i n / . test ( process . platform ) ? win : nix ) ;
12+ process . exit ( 1 ) ;
13+ }
Original file line number Diff line number Diff line change 1212 },
1313 "scripts" : {
1414 "test" : " node node_modules/mocha/bin/_mocha" ,
15+ "preinstall" : " node build/npm/preinstall.js" ,
1516 "postinstall" : " npm --prefix extensions/csharp-o/ install extensions/csharp-o/ && npm --prefix extensions/vscode-api-tests/ install extensions/vscode-api-tests/"
1617 },
1718 "dependencies" : {
You can’t perform that action at this time.
0 commit comments