From c088e730635a169ed3de3738d3ddba8f2ba38225 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 8 Dec 2022 10:22:40 -0700 Subject: [PATCH] fix: use proper npm casing postinstall (#5848) * fix: use proper npm casing postinstall * chore: add log for npm config user agent * fixup --- ci/build/npm-postinstall.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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