not sure when this changed but it is now possible to add packages with composer using your module using the extension framework
follow the instructions on this page
https://docs.suitecrm.com/developer/extension-framework/