Function: projectile--same-manifest-type-p

projectile--same-manifest-type-p is a byte-compiled function defined in projectile.el.

Signature

(projectile--same-manifest-type-p A B)

Documentation

Return non-nil when project types A and B are declared by the same manifest.

Both node and pnpm are identified by package.json, for instance, so one is a less specific reading of the other rather than a different kind of project.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--same-manifest-type-p (a b)
  "Return non-nil when project types A and B are declared by the same manifest.
Both `node' and `pnpm' are identified by `package.json', for instance, so
one is a less specific reading of the other rather than a different kind
of project."
  (and a b
       (let ((fa (projectile-project-type-attribute a 'project-file))
             (fb (projectile-project-type-attribute b 'project-file)))
         (and fa fb (equal fa fb)))))