File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,7 @@ function build-code-server() {
98
98
# latest glibc. This means you must build on the target system.
99
99
log " Installing remote dependencies"
100
100
cd " ${vscodeSourcePath} /remote"
101
- # TODO: vscode-ripgrep errors saying node_modules doesn't exist.
102
- # TODO: yarn --force should be the same but it doesn't fix it.
103
- npm rebuild || true
101
+ yarn --production --force --build-from-source
104
102
cp -r " ${vscodeSourcePath} /remote/node_modules" " ${codeServerBuildPath} "
105
103
106
104
# Only keep the production dependencies.
@@ -131,14 +129,11 @@ function build-vscode() {
131
129
if [[ ! -d " ${vscodeSourcePath} /node_modules" ]] ; then
132
130
exit-if-ci
133
131
log " Installing VS Code dependencies"
134
- # Not entirely sure why but there seem to be problems with native modules
135
- # so rebuild them.
136
- # TODO: vscode-ripgrep errors saying node_modules doesn't exist.
137
- # TODO: yarn --force should be the same but it'.
138
- npm rebuild || true
132
+ yarn
139
133
140
134
# Keep just what we need to keep the pre-built archive smaller.
141
135
rm -rf " ${vscodeSourcePath} /test"
136
+ rm -rf " ${vscodeSourcePath} /remote/node_modules" # Will rebuild.
142
137
else
143
138
log " ${vscodeSourceName} /node_modules already exists, skipping install"
144
139
fi
You can’t perform that action at this time.
0 commit comments