Manifest
Index
Constructors
Properties
- bin
- browser
- cpu
- dependencies
- dependenciesMeta
- devDependencies
- errors
- files
- indent
- installConfig
- languageName
- libc
- license
- main
- module
- name
- os
- packageManager
- peerDependencies
- peerDependenciesMeta
- preferUnplugged
- private
- publishConfig
- raw
- resolutions
- scripts
- type
- version
- workspaceDefinitions
- allDependencies
- fileName
- hardDependencies
Methods
Constructors
constructor
Returns Manifest
Properties
publicbin
publicbrowser
publiccpu
publicdependencies
publicdependenciesMeta
publicdevDependencies
publicerrors
publicfiles
publicindent
publicinstallConfig
publiclanguageName
publiclibc
publiclicense
publicmain
publicmodule
publicname
publicos
publicpackageManager
publicpeerDependencies
publicpeerDependenciesMeta
publicpreferUnplugged
publicprivate
publicpublishConfig
publicraw
Type declaration
[key string]: any
publicresolutions
publicscripts
publictype
publicversion
publicworkspaceDefinitions
staticreadonlyallDependencies
staticreadonlyfileName
staticreadonlyhardDependencies
Methods
ensureDependencyMeta
Parameters
descriptor: Descriptor
Returns DependencyMeta
ensurePeerDependencyMeta
Parameters
descriptor: Descriptor
Returns PeerDependencyMeta
exportTo
Parameters
data: {}
__namedParameters: { compatibilityMode?: boolean } = {}
Returns {}
[key string]: any
getConditions
Returns null | string
getForScope
Parameters
type: string
Returns Map<IdentHash, Descriptor>
hasConsumerDependency
Parameters
ident: Ident
Returns boolean
hasDependency
Parameters
ident: Ident
Returns boolean
hasHardDependency
Parameters
ident: Ident
Returns boolean
hasSoftDependency
Parameters
ident: Ident
Returns boolean
load
Parameters
data: any
__namedParameters: { yamlCompatibilityMode?: boolean } = {}
Returns void
loadFile
Parameters
path: PortablePath
__namedParameters: { baseFs?: FakeFS<PortablePath> }
Returns Promise<void>
loadFromText
Parameters
text: string
Returns void
setRawField
Parameters
name: string
value: any
__namedParameters: { after?: string[] } = {}
Returns void
staticfind
Parameters
path: PortablePath
__namedParameters: { baseFs?: FakeFS<PortablePath> } = {}
Returns Promise<Manifest>
staticfromFile
Parameters
path: PortablePath
__namedParameters: { baseFs?: FakeFS<PortablePath> } = {}
Returns Promise<Manifest>
staticfromText
Parameters
text: string
Returns Manifest
statictryFind
Parameters
path: PortablePath
__namedParameters: { baseFs?: FakeFS<PortablePath> } = {}
Returns Promise<null | Manifest>
errors found in the raw manifest while loading