XpmPackage.hasXpmActions() method
Determines whether the package defines any xpm actions.
Signature
hasXpmActions(): boolean;
Returns
boolean
true if actions are defined directly or within build configurations, false otherwise.
Remarks
This method performs a comprehensive search for action definitions at both the package level and within build configurations, including template-based configurations.
Action detection strategy:
- Check for package-level actions in
xpack.actions. - If no package-level actions, iterate through all build configurations.
- For each configuration, determine if it's a template (name contains Liquid syntax) or a regular configuration.
- For templates: Check
template.actionsfor action definitions. - For regular configurations: Check
actionsdirectly. - Return true if any actions are found at any level.
This comprehensive check is useful for determining whether xpm action commands should be available or whether the package requires xpm for build automation.
Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.