Function: projectile--npm-runner

projectile--npm-runner is a byte-compiled function defined in projectile.el.

Signature

(projectile--npm-runner PROJECT-ROOT)

Documentation

Return the package manager command to use in PROJECT-ROOT.

Derived from the lock file present, so it holds regardless of which project type won detection.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--npm-runner (project-root)
  "Return the package manager command to use in PROJECT-ROOT.
Derived from the lock file present, so it holds regardless of which
project type won detection."
  (cond ((projectile--task-file project-root "pnpm-lock.yaml") "pnpm")
        ((projectile--task-file project-root "yarn.lock") "yarn")
        ((projectile--first-task-file project-root projectile--bun-lock-names) "bun")
        (t "npm")))