diff --git a/ci/build/npm-postinstall.sh b/ci/build/npm-postinstall.sh index dc457935e..b407a03db 100755 --- a/ci/build/npm-postinstall.sh +++ b/ci/build/npm-postinstall.sh @@ -124,10 +124,11 @@ main() { } install_with_yarn_or_npm() { + echo "User agent: ${npm_config_user_agent-none}" # NOTE@edvincent: We want to keep using the package manager that the end-user was using to install the package. # This also ensures that when *we* run `yarn` in the development process, the yarn.lock file is used. case "${npm_config_user_agent-}" in - npm*) + *npm*) if [ -f "yarn.lock" ]; then echo "yarn.lock file present, running in development mode. use yarn to install code-server!" exit 1