Skip to content

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.

string

A package reference, e.g. test-package@0.1.0+2, test-package, or an ID.

object

The name, plus the version if the reference carried one.

name: string

optional version?: string