Package Lifecycle
Announced prior to installing a package. If a package has additional dependencies to install, each of them will fire this interception point.
interceptData
installArgs - Struct containing the following keys used in installation of the package.
ID - The ID of the package to install
directory - Directory to install to. May be null, if none supplied.
Announced while a package is being installed, after the package endpoint and installation directory has been resolved but before the actual installation occurs. This allows you to override things like the installation directory based on package type. Any values updated in the interceptData struct will override what the install command uses.
interceptData
installArgs - Same as preInstall above
installDirectory - Directory that the package will be installed in
Announced after an installation is complete. If a package has additional dependencies to install, each of them will fire this interception point. This fires even if an install is skipped due to an existing package that satisfies the dependencies, or if the package is already installed.
interceptData
installArgs - Same as preInstall above
Announced before the uninstallation of a package.
interceptData
uninstallArgs - Struct containing the following keys used in removal of the package
ID - ID of the package to uninstall
Announced after the uninstallation of a package.
interceptData
uninstallArgs - Same as preUninstall above
Announced before the new version is set in the package.
interceptData
versionArgs - A struct containing the following keys:
version - The new version about to be set
Announced after the new version is set in the package but before the Git repo is tagged.
interceptData
versionArgs - Same as preVersion above.
Announced after a new version is set using the bump command and after the Git repo is tagged.
interceptData
directory - The working directory of the package
version - The new version about was set
Announced prior to publishing a package to an endpoint
interceptData
publishArgs - A struct containing the following keys:
endpointName - The name of the endpoint being published to
Announced after publishing a package to an endpoint
interceptData
publishArgs - Same as prePublish above.
boxJSON - Same as prePublish above.
Announced prior to unpublishing a package from an endpoint
interceptData
unpublishArgs - A struct containing the following keys:
endpointName - The name of the endpoint being published to
Announced after unpublishing a package from an endpoint
interceptData
unpublishArgs - Same as preUnpublish above.
boxJSON - Same as preUnpublish above.