Skip to content

Commit f450e25

Browse files
feat: version ovveride
1 parent 4d9b11f commit f450e25

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/package/packageBundleVersionCreate.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ export class PackageBundleVersionCreate {
7575
project
7676
);
7777
const packageBundleId = PackageBundleVersionCreate.parsePackageBundleId(options.PackageBundle, project);
78-
const version = await PackageBundleVersionCreate.getPackageVersion(options, project, connection);
78+
79+
// Use provided MajorVersion and MinorVersion if they are not empty strings, otherwise get from bundle configuration
80+
const version =
81+
options.MajorVersion && options.MinorVersion
82+
? { MajorVersion: options.MajorVersion, MinorVersion: options.MinorVersion }
83+
: await PackageBundleVersionCreate.getPackageVersion(options, project, connection);
7984

8085
const request: BundleSObjects.PkgBundleVersionCreateReq = {
8186
PackageBundleId: packageBundleId,

0 commit comments

Comments
 (0)