File tree 5 files changed +0
-40
lines changed
5 files changed +0
-40
lines changed Original file line number Diff line number Diff line change 99
99
# yarn to fetch node_modules if necessary without build scripts running.
100
100
# We cannot use --no-scripts because we still want dependent package scripts to run.
101
101
jq ' del(.scripts)' < " $VSCODE_SRC_PATH /package.json" > " $VSCODE_OUT_PATH /package.json"
102
-
103
- pushd " $VSCODE_OUT_PATH "
104
- symlink_asar
105
- popd
106
102
}
107
103
108
104
main " $@ "
Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ main() {
6
6
source ./ci/lib.sh
7
7
8
8
git clean -Xffd
9
-
10
- pushd node_modules/vscode
11
- git clean -xffd
12
- popd
13
9
}
14
10
15
11
main " $@ "
Original file line number Diff line number Diff line change @@ -76,23 +76,11 @@ main() {
76
76
fi
77
77
}
78
78
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
-
89
79
vscode_yarn () {
90
80
cd node_modules
91
81
92
82
yarn --production --frozen-lockfile
93
83
94
- symlink_asar
95
-
96
84
cd extensions
97
85
yarn --production --frozen-lockfile
98
86
for ext in * /; do
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ main() {
17
17
cd node_modules/vscode
18
18
# Freeze when in CI
19
19
yarn install --frozen-lockfile
20
-
21
- symlink_asar
22
20
}
23
21
24
22
main " $@ "
Original file line number Diff line number Diff line change @@ -104,21 +104,3 @@ export OS
104
104
# RELEASE_PATH is the destination directory for the release from the root.
105
105
# Defaults to release
106
106
RELEASE_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