Commit 473abd29 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: install dependencies for pnpm

closes #29
parent c6d81da5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -406,7 +406,6 @@ stages:
    - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"
    - cd ${NODE_PROJECT_DIR}
    - guess_node_manager_system
    - if [ "$NODE_MANAGER" = "pnpm" ]; then check_pnpm_installation; fi
    - config_registry=${NODE_CONFIG_REGISTRY:-$NPM_CONFIG_REGISTRY}
    # NPM_CONFIG_REGISTRY is not supported by old npm versions: force with cli
    - if [[ "$config_registry" ]]; then $NODE_MANAGER config set registry $config_registry; fi
@@ -416,6 +415,11 @@ stages:
      npm)
        npm ci --prefer-offline $NODE_INSTALL_EXTRA_OPTS
        ;;
      pnpm)
        check_pnpm_installation
        # leave automatic lockfile policy (see: https://pnpm.io/cli/install#--frozen-lockfile)
        pnpm install --prefer-offline $NODE_INSTALL_EXTRA_OPTS
        ;;
      yarn)
        yarn install --immutable --immutable-cache --check-cache $NODE_INSTALL_EXTRA_OPTS
      ;;