Expose retrieveSubscriberPackageVersionId() from PackageVersionCreate class #2721
Replies: 2 comments 4 replies
-
@ClayChipps - Moving to packageUtils and exposing publicly seems reasonable. You're more than welcome to open a PR on that repo if you'd like, otherwise I'll add this to our queue for prioritization. |
Beta Was this translation helpful? Give feedback.
-
@ClayChipps - I spent some time with @shetzel this morning discussing this idea. Would a utility function like Is there additional context around your uses cases that you'd like to share? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Currently, the @salesforce/packaging PackageVersionCreate class has a function retrieveSubscriberPackageVersionId, however it is currently a private function.
There are a few CLI plugins out there that perform dependency installation based on the contents of a sfdx-project.json. Many of these plugins use a similar function for "resolving" the combination Package2Id + VersionNumber to a SubscriberPackageVersionId. It would be extremely beneficial to be able to use this implementation instead of writing our own.
Is this something that we could either expose publicly, or move into to the packageUtils class?
Beta Was this translation helpful? Give feedback.
All reactions