splitPackageAlias
splitPackageAlias(
value):object
Defined in: simply-package-core/src/packageVersionLookup.ts:52
Split a package reference into its name and version parts.
Splits on the last @, matching how sfdx-project.json aliases are written and how
simply-cicd’s dependabot updater already parses them, so a name that itself contains an @
(a scoped-style @ns/pkg) keeps its name intact.
Parameters
Section titled “Parameters”string
A package reference, e.g. test-package@0.1.0+2, test-package, or an ID.
Returns
Section titled “Returns”object
The name, plus the version if the reference carried one.
name:
string
version?
Section titled “version?”
optionalversion?:string