Skip to main content

Hi guys,

 

I have some questions that I cannot seem to have found answer online:

 

1. For what I found, it seems that when installing an unlocked package you need to manually install dependencies (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp_install_pkg_sample_script.htm).

 

Is this something that the CLI will do in the future (similar to what other package managers do like npm or yarn)?

 

2. Can a package depend on another package that is not part of the same sfdx-project, like a library reference for example?

 

Most examples I found seem to have dependencies in the same project but not from remote packages (like the JSON here https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp_extract_dependency_info.htm). Again something similar to how other package managers handle installing dependencies by not requiring the dependency to be part of the package being developed but by referencing it.

 

3. Is there a way (or is in the roadmap) to be able to delete a package?

Since many test are being done creating packages would be nice to be able to delete those tests so the Dev Hub is not a test nightmare. 

6 commentaires
  1. 18 oct. 2018, 14:09
    So far there is no check, it will install all the dependencies even if the package is already installed. That could be an improvement for the plugin.
0/9000