Class ProjectPackage

Package configuration constructed by package.json contents.

Hierarchy (view full)

Implements

Constructors

Accessors

Methods

  • Detects whether this package depends on the given one.

    Parameters

    • packageName: string

      Dependency package name.

    Returns Promise<boolean | "dev">

    Promise resolved to true when the package found among PackageJson#dependencies runtime dependencies, to 'dev' when it is found among PackageJson#devDependencies development dependencies, or to false otherwise.