Skip to content

Commit c088e73

Browse files
authored
fix: use proper npm casing postinstall (#5848)
* fix: use proper npm casing postinstall * chore: add log for npm config user agent * fixup
1 parent 83c3453 commit c088e73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/build/npm-postinstall.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ main() {
124124
}
125125

126126
install_with_yarn_or_npm() {
127+
echo "User agent: ${npm_config_user_agent-none}"
127128
# NOTE@edvincent: We want to keep using the package manager that the end-user was using to install the package.
128129
# This also ensures that when *we* run `yarn` in the development process, the yarn.lock file is used.
129130
case "${npm_config_user_agent-}" in
130-
npm*)
131+
*npm*)
131132
if [ -f "yarn.lock" ]; then
132133
echo "yarn.lock file present, running in development mode. use yarn to install code-server!"
133134
exit 1

0 commit comments

Comments
 (0)