File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ main() {
10
10
11
11
source ./ci/lib.sh
12
12
13
- rsync " $RELEASE_PATH /" " $RELEASE_PATH -standalone"
13
+ rsync --exclude yarn.lock " $RELEASE_PATH /" " $RELEASE_PATH -standalone"
14
14
RELEASE_PATH+=-standalone
15
15
16
16
# 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() {
127
127
# NOTE@edvincent: We want to keep using the package manager that the end-user was using to install the package.
128
128
# This also ensures that when *we* run `yarn` in the development process, the yarn.lock file is used.
129
129
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
- ;;
138
130
npm* )
139
131
if [ -f " yarn.lock" ]; then
140
132
echo " yarn.lock file present, running in development mode. use yarn to install code-server!"
@@ -146,6 +138,14 @@ install_with_yarn_or_npm() {
146
138
npm install --unsafe-perm --legacy-peer-deps --omit=dev
147
139
fi
148
140
;;
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
+ ;;
149
149
* )
150
150
echo " Could not determine which package manager is being used to install code-server"
151
151
exit 1
You can’t perform that action at this time.
0 commit comments