File tree 3 files changed +19
-16
lines changed
3 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ VS Code v1.56
63
63
### Bug Fixes
64
64
65
65
- fix: Check the logged user instead of $USER #3330 @videlanicolas
66
+ - fix: Fix broken node_modules.asar symlink in npm package #3355 @code-asher
66
67
67
68
### Documentation
68
69
Original file line number Diff line number Diff line change @@ -56,18 +56,21 @@ main() {
56
56
fi
57
57
}
58
58
59
+ # This is a copy of symlink_asar in ../lib.sh. Look there for details.
60
+ symlink_asar () {
61
+ rm -f node_modules.asar
62
+ if [ " ${WINDIR-} " ]; then
63
+ mklink /J node_modules.asar node_modules
64
+ else
65
+ ln -s node_modules node_modules.asar
66
+ fi
67
+ }
68
+
59
69
vscode_yarn () {
60
70
cd lib/vscode
61
71
yarn --production --frozen-lockfile
62
72
63
- # This is a copy of symlink_asar in ../lib.sh. Look there for details.
64
- if [ ! -e node_modules.asar ]; then
65
- if [ " ${WINDIR-} " ]; then
66
- mklink /J node_modules.asar node_modules
67
- else
68
- ln -s node_modules node_modules.asar
69
- fi
70
- fi
73
+ symlink_asar
71
74
72
75
cd extensions
73
76
yarn --production --frozen-lockfile
Original file line number Diff line number Diff line change @@ -112,13 +112,12 @@ RELEASE_PATH="${RELEASE_PATH-release}"
112
112
# Code itself but also extensions will look specifically in this directory for
113
113
# files (like the ripgrep binary or the oniguruma wasm).
114
114
symlink_asar () {
115
- if [ ! -L node_modules.asar ]; then
116
- if [ " ${WINDIR-} " ]; then
117
- # mklink takes the link name first.
118
- mklink /J node_modules.asar node_modules
119
- else
120
- # ln takes the link name second.
121
- ln -s node_modules node_modules.asar
122
- fi
115
+ rm -f node_modules.asar
116
+ if [ " ${WINDIR-} " ]; then
117
+ # mklink takes the link name first.
118
+ mklink /J node_modules.asar node_modules
119
+ else
120
+ # ln takes the link name second.
121
+ ln -s node_modules node_modules.asar
123
122
fi
124
123
}
You can’t perform that action at this time.
0 commit comments