File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const yarn = process.platform === 'win32' ? 'yarn.cmd' : 'yarn';
1313 * @param {* } [opts]
1414 */
1515function yarnInstall ( location , opts ) {
16- opts = opts || { } ;
16+ opts = opts || { env : process . env } ;
1717 opts . cwd = location ;
1818 opts . stdio = 'inherit' ;
1919
@@ -52,8 +52,6 @@ extensions.forEach(extension => yarnInstall(`extensions/${extension}`));
5252function yarnInstallBuildDependencies ( ) {
5353 // make sure we install the deps of build/lib/watch for the system installed
5454 // node, since that is the driver of gulp
55- //@ts -ignore
56- const env = Object . assign ( { } , process . env ) ;
5755 const watchPath = path . join ( path . dirname ( __dirname ) , 'lib' , 'watch' ) ;
5856 const yarnrcPath = path . join ( watchPath , '.yarnrc' ) ;
5957
@@ -66,7 +64,7 @@ target "${target}"
6664runtime "${ runtime } "` ;
6765
6866 fs . writeFileSync ( yarnrcPath , yarnrc , 'utf8' ) ;
69- yarnInstall ( watchPath , { env } ) ;
67+ yarnInstall ( watchPath ) ;
7068}
7169
7270yarnInstall ( `build` ) ; // node modules required for build
You can’t perform that action at this time.
0 commit comments