XpmPackage.isBinaryXpmPackage() method
Determines whether the package is a binary xpm package.
Signature
isBinaryXpmPackage(): boolean;
Returns
boolean
true if the package defines binaries and executables, false otherwise.
Exceptions
XpmInputError If required binary package fields are missing.
Remarks
Binary packages must have both executables and binaries. The presence of one implies the other, so this method validates consistency.
Validation rules:
- If
xpack.executables(or deprecatedxpack.bin) exists, thenxpack.binariesandxpack.binaries.platformsmust also exist. - If
xpack.binariesexists, thenxpack.binaries.platformsandxpack.executables(or deprecatedxpack.bin) must also exist.
This bidirectional validation ensures package metadata consistency and catches incomplete binary package configurations early. The check helps prevent runtime errors when attempting to install or use binary packages with missing metadata.
Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.