XpmPackage.jsonPackage property
The parsed package.json content, when available.
Signature
jsonPackage?: JsonXpmPackage;
Remarks
This property caches the parsed package.json content after successful reading, avoiding repeated file I/O and parsing operations.
Lifecycle states:
- Initially undefined when the
XpmPackageinstance is created. - Populated by
XpmPackage.readPackageDotJson()upon successful read and parse. - Cleared to undefined if parsing fails with
withThrowenabled. - Used by validation methods (
isNpmPackage,isXpmPackage,isBinaryXpmPackage) to check package capabilities. - Not automatically updated when
package.jsonis modified externally; callXpmPackage.readPackageDotJson()again to refresh.
The cached content improves performance for packages that perform multiple validation checks without file system access overhead.
Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.