File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -129,23 +129,13 @@ install_with_yarn_or_npm() {
129129  #  This also ensures that when *we* run `yarn` in the development process, the yarn.lock file is used.
130130  case  " ${npm_config_user_agent-} " in 
131131    npm* )
132-       if  [ -f  " yarn.lock" ;  then 
133-         echo  " yarn.lock file present, running in development mode. use yarn to install code-server!" 
134-         exit  1
135-       else 
136-         #  HACK: NPM's use of semver doesn't like resolving some peerDependencies that vscode (upstream) brings in the form of pre-releases.
137-         #  The legacy behavior doesn't complain about pre-releases being used, falling back to that for now.
138-         #  See https://github.com//pull/5071
139-         npm install --unsafe-perm --legacy-peer-deps --omit=dev
140-       fi 
132+       #  HACK: NPM's use of semver doesn't like resolving some peerDependencies that vscode (upstream) brings in the form of pre-releases.
133+       #  The legacy behavior doesn't complain about pre-releases being used, falling back to that for now.
134+       #  See https://github.com//pull/5071
135+       npm install --unsafe-perm --legacy-peer-deps --omit=dev
141136      ;;
142137    yarn* )
143-       if  [ -f  " yarn.lock" ;  then 
144-         yarn --production --frozen-lockfile --no-default-rc
145-       else 
146-         echo  " yarn.lock file not present, not running in development mode. use npm to install code-server!" 
147-         exit  1
148-       fi 
138+       yarn --production --frozen-lockfile --no-default-rc
149139      ;;
150140    * )
151141      echo  " Could not determine which package manager is being used to install code-server" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments