Function: projectile--workspace-member-patterns

projectile--workspace-member-patterns is a byte-compiled function defined in projectile.el.

Signature

(projectile--workspace-member-patterns ROOT)

Documentation

Return ROOT's declared workspace member patterns, or nil.

Reads the manifest of the workspace formats Projectile can parse statically - pnpm, npm/yarn/bun, Cargo and Go - and returns the raw globs. Formats whose member list is computed rather than declared
(Gradle builds it in a Kotlin or Groovy program, Bazel in Starlark) have
no answer here and fall through to scanning.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--workspace-member-patterns (root)
  "Return ROOT's declared workspace member patterns, or nil.
Reads the manifest of the workspace formats Projectile can parse
statically - pnpm, npm/yarn/bun, Cargo and Go - and returns the raw
globs.  Formats whose member list is computed rather than declared
\(Gradle builds it in a Kotlin or Groovy program, Bazel in Starlark) have
no answer here and fall through to scanning."
  (let ((pnpm (expand-file-name "pnpm-workspace.yaml" root))
        (npm (expand-file-name "package.json" root))
        (cargo (expand-file-name "Cargo.toml" root))
        (gowork (expand-file-name "go.work" root)))
    (cond
     ((file-readable-p pnpm) (projectile--pnpm-workspace-patterns pnpm))
     ((file-readable-p npm) (projectile--npm-workspace-patterns npm))
     ((file-readable-p cargo) (projectile--cargo-workspace-patterns cargo))
     ((file-readable-p gowork) (projectile--go-work-patterns gowork)))))