Skip to content

Enumeration

JSPackageManager

The JavaScript/Node.js package manager to use for running scripts.

enum JSPackageManager

Overview

Detected automatically from lockfiles in the project directory. The detection order (pnpm → yarn → npm) matches standard convention — more specific lockfiles take priority over the generic package-lock.json.

Topics

Enumeration Cases

  • case npm

    npm — detected from package-lock.json or as the fallback.

  • case pnpm

    pnpm — detected from pnpm-lock.yaml.

  • case yarn

    Yarn — detected from yarn.lock.

Instance Properties

Instance Methods

Type Methods

Relationships

Conforms To

  • Swift.CaseIterable
  • Swift.Equatable
  • Swift.Hashable
  • Swift.RawRepresentable
  • Swift.Sendable
  • Swift.SendableMetatype