File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ main() {
1010
1111  source  ./ci/lib.sh
1212
13-   rsync " $RELEASE_PATH /" " $RELEASE_PATH -standalone" 
13+   rsync --exclude yarn.lock  " $RELEASE_PATH /" " $RELEASE_PATH -standalone" 
1414  RELEASE_PATH+=-standalone
1515
1616  #  We cannot find the path to node from $PATH because yarn shims a script to ensure
Original file line number Diff line number Diff line change @@ -127,14 +127,6 @@ install_with_yarn_or_npm() {
127127  #  NOTE@edvincent: We want to keep using the package manager that the end-user was using to install the package.
128128  #  This also ensures that when *we* run `yarn` in the development process, the yarn.lock file is used.
129129  case  " ${npm_config_user_agent-} " in 
130-     yarn* )
131-       if  [ -f  " yarn.lock" ;  then 
132-         yarn --production --frozen-lockfile --no-default-rc
133-       else 
134-         echo  " yarn.lock file not present, not running in development mode. use npm to install code-server!" 
135-         exit  1
136-       fi 
137-       ;;
138130    npm* )
139131      if  [ -f  " yarn.lock" ;  then 
140132        echo  " yarn.lock file present, running in development mode. use yarn to install code-server!" 
@@ -146,6 +138,14 @@ install_with_yarn_or_npm() {
146138        npm install --unsafe-perm --legacy-peer-deps --omit=dev
147139      fi 
148140      ;;
141+     yarn* )
142+       if  [ -f  " yarn.lock" ;  then 
143+         yarn --production --frozen-lockfile --no-default-rc
144+       else 
145+         echo  " yarn.lock file not present, not running in development mode. use npm to install code-server!" 
146+         exit  1
147+       fi 
148+       ;;
149149    * )
150150      echo  " Could not determine which package manager is being used to install code-server" 
151151      exit  1
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments