mirror of
https://github.com/coder/code-server.git
synced 2024-12-28 12:14:18 +03:00
fix: use proper npm casing postinstall (#5848)
* fix: use proper npm casing postinstall * chore: add log for npm config user agent * fixup
This commit is contained in:
parent
83c3453f50
commit
c088e73063
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user