File tree Expand file tree Collapse file tree 5 files changed +0
-40
lines changed
Expand file tree Collapse file tree 5 files changed +0
-40
lines changed Original file line number Diff line number Diff line change 9999 # yarn to fetch node_modules if necessary without build scripts running.
100100 # We cannot use --no-scripts because we still want dependent package scripts to run.
101101 jq ' del(.scripts)' < " $VSCODE_SRC_PATH /package.json" > " $VSCODE_OUT_PATH /package.json"
102-
103- pushd " $VSCODE_OUT_PATH "
104- symlink_asar
105- popd
106102}
107103
108104main " $@ "
Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ main() {
66 source ./ci/lib.sh
77
88 git clean -Xffd
9-
10- pushd node_modules/vscode
11- git clean -xffd
12- popd
139}
1410
1511main " $@ "
Original file line number Diff line number Diff line change @@ -76,23 +76,11 @@ main() {
7676 fi
7777}
7878
79- # This is a copy of symlink_asar in ../lib.sh. Look there for details.
80- symlink_asar () {
81- rm -rf node_modules.asar
82- if [ " ${WINDIR-} " ]; then
83- mklink /J node_modules.asar node_modules
84- else
85- ln -s node_modules node_modules.asar
86- fi
87- }
88-
8979vscode_yarn () {
9080 cd node_modules
9181
9282 yarn --production --frozen-lockfile
9383
94- symlink_asar
95-
9684 cd extensions
9785 yarn --production --frozen-lockfile
9886 for ext in * /; do
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ main() {
1717 cd node_modules/vscode
1818 # Freeze when in CI
1919 yarn install --frozen-lockfile
20-
21- symlink_asar
2220}
2321
2422main " $@ "
Original file line number Diff line number Diff line change @@ -104,21 +104,3 @@ export OS
104104# RELEASE_PATH is the destination directory for the release from the root.
105105# Defaults to release
106106RELEASE_PATH=" ${RELEASE_PATH-release} "
107-
108- # VS Code bundles some modules into an asar which is an archive format that
109- # works like tar. It then seems to get unpacked into node_modules.asar.
110- #
111- # I don't know why they do this but all the dependencies they bundle already
112- # exist in node_modules so just symlink it. We have to do this since not only VS
113- # Code itself but also extensions will look specifically in this directory for
114- # files (like the ripgrep binary or the oniguruma wasm).
115- symlink_asar () {
116- rm -rf node_modules.asar
117- if [ " ${WINDIR-} " ]; then
118- # mklink takes the link name first.
119- mklink /J node_modules.asar node_modules
120- else
121- # ln takes the link name second.
122- ln -s node_modules node_modules.asar
123- fi
124- }
You can’t perform that action at this time.
0 commit comments