Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Manifest

Hierarchy

  • Manifest

Properties

bin

bin: Map<string, PortablePath> = new Map()

browser

browser: PortablePath | Map<PortablePath, boolean | PortablePath> | null = null

cpu

cpu: Array<string> | null = null

dependencies

dependencies: Map<IdentHash, Descriptor> = new Map()

dependenciesMeta

dependenciesMeta: Map<string, Map<string | null, DependencyMeta>> = new Map()

devDependencies

devDependencies: Map<IdentHash, Descriptor> = new Map()

errors

errors: Array<Error> = []

errors found in the raw manifest while loading

files

files: Set<PortablePath> | null = null

indent

indent: string = ` `

installConfig

installConfig: InstallConfig | null = null

languageName

languageName: string | null = null

libc

libc: Array<string> | null = null

license

license: string | null = null

main

main: PortablePath | null = null

module

module: PortablePath | null = null

name

name: Ident | null = null

os

os: Array<string> | null = null

packageManager

packageManager: string | null = null

peerDependencies

peerDependencies: Map<IdentHash, Descriptor> = new Map()

peerDependenciesMeta

peerDependenciesMeta: Map<string, PeerDependencyMeta> = new Map()

preferUnplugged

preferUnplugged: boolean | null = null

private

private: boolean = false

publishConfig

publishConfig: PublishConfig | null = null

raw

raw: object

Type declaration

  • [key: string]: any

resolutions

resolutions: Array<object> = []

scripts

scripts: Map<string, string> = new Map()

type

type: string | null = null

version

version: string | null = null

workspaceDefinitions

workspaceDefinitions: Array<WorkspaceDefinition> = []

Static allDependencies

allDependencies: Array<AllDependencies> = [`dependencies`, `devDependencies`, `peerDependencies`]

Static fileName

fileName: string & object = `package.json` as Filename

Static hardDependencies

hardDependencies: Array<HardDependencies> = [`dependencies`, `devDependencies`]

Methods

ensureDependencyMeta

ensurePeerDependencyMeta

exportTo

  • exportTo(data: object, __namedParameters?: object): object

getConditions

  • getConditions(): null | string

getForScope

  • getForScope(type: string): Map<string & object, Descriptor>

hasConsumerDependency

  • hasConsumerDependency(ident: Ident): boolean

hasDependency

  • hasDependency(ident: Ident): boolean

hasHardDependency

  • hasHardDependency(ident: Ident): boolean

hasSoftDependency

  • hasSoftDependency(ident: Ident): boolean

isCompatibleWithCPU

  • isCompatibleWithCPU(cpu: string): boolean

isCompatibleWithOS

  • isCompatibleWithOS(os: string): boolean

load

  • load(data: any, __namedParameters?: object): void

loadFile

  • loadFile(path: PortablePath, __namedParameters: object): Promise<void>

loadFromText

  • loadFromText(text: string): void

setRawField

  • setRawField(name: string, value: any, __namedParameters?: object): void

Static find

Static fromFile

Static fromText

Static isManifestFieldCompatible

  • isManifestFieldCompatible(rules: Array<string> | null, actual: string): boolean

Static tryFind

Generated using TypeDoc