@salesforce/packaging 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/interfaces/packagingInterfacesAndType.d.ts +30 -5
- package/lib/package/index.d.ts +1 -0
- package/lib/package/index.js +1 -0
- package/lib/package/packageProfileApi.d.ts +12 -5
- package/lib/package/packageProfileApi.js +3 -3
- package/lib/package/packageVersion.d.ts +12 -15
- package/lib/package/packageVersion.js +28 -46
- package/lib/package/packageVersionCreate.d.ts +12 -32
- package/lib/package/packageVersionCreate.js +105 -305
- package/lib/package/packageVersionCreateRequest.d.ts +1 -1
- package/lib/package1/package1VersionList.d.ts +1 -1
- package/lib/package1/package1VersionList.js +1 -1
- package/lib/utils/packageUtils.d.ts +5 -19
- package/lib/utils/packageUtils.js +7 -148
- package/messages/messages.md +6 -30
- package/messages/packageVersionCreate.md +71 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.21](https://github.com/forcedotcom/packaging/compare/v0.0.20...v0.0.21) (2022-08-19)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- inital refactor for PVC - a lot left to do, but a lot has been done ([c629291](https://github.com/forcedotcom/packaging/commit/c629291ae375c7db627b47f4ddb2f6bdd874c394))
|
|
10
|
+
|
|
5
11
|
### [0.0.20](https://github.com/forcedotcom/packaging/compare/v0.0.19...v0.0.20) (2022-08-19)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Duration } from '@salesforce/kit';
|
|
2
|
-
import { Connection, SfProject } from '@salesforce/core';
|
|
2
|
+
import { Connection, NamedPackageDir, SfProject } from '@salesforce/core';
|
|
3
3
|
import { QueryResult, SaveResult } from 'jsforce';
|
|
4
4
|
import { PackageProfileApi } from '../package/packageProfileApi';
|
|
5
5
|
import { PackagingSObjects } from './packagingSObjects';
|
|
@@ -119,6 +119,34 @@ export declare type PackageCreateOptions = {
|
|
|
119
119
|
errorNotificationUsername: string;
|
|
120
120
|
path: string;
|
|
121
121
|
};
|
|
122
|
+
export declare type PackageDescriptorJson = Partial<NamedPackageDir> & Partial<{
|
|
123
|
+
id: string;
|
|
124
|
+
features: string[];
|
|
125
|
+
orgPreferences: string[];
|
|
126
|
+
snapshot: string;
|
|
127
|
+
unpackagedMetadata: NamedPackageDir;
|
|
128
|
+
apexTestAccess: {
|
|
129
|
+
permissionSets: string[] | string;
|
|
130
|
+
permissionSetLicenses: string[] | string;
|
|
131
|
+
};
|
|
132
|
+
permissionSetNames: string[];
|
|
133
|
+
permissionSetLicenseDeveloperNames: string[];
|
|
134
|
+
branch: string;
|
|
135
|
+
subscriberPackageVersionId: string;
|
|
136
|
+
packageId: string;
|
|
137
|
+
versionName: string;
|
|
138
|
+
}>;
|
|
139
|
+
export declare type PackageVersionCreateRequest = {
|
|
140
|
+
Package2Id: string;
|
|
141
|
+
VersionInfo: string;
|
|
142
|
+
Tag: string;
|
|
143
|
+
Branch: string;
|
|
144
|
+
InstallKey: string;
|
|
145
|
+
Instance: string;
|
|
146
|
+
SourceOrg: string;
|
|
147
|
+
CalculateCodeCoverage: boolean;
|
|
148
|
+
SkipValidation: boolean;
|
|
149
|
+
};
|
|
122
150
|
export declare type PackageVersionQueryOptions = {
|
|
123
151
|
project: SfProject;
|
|
124
152
|
orderBy: string;
|
|
@@ -171,8 +199,7 @@ export declare type PackageVersionCreateOptions = Partial<PackageVersionOptions
|
|
|
171
199
|
definitionfile: string;
|
|
172
200
|
installationkey: string;
|
|
173
201
|
installationkeybypass: boolean;
|
|
174
|
-
|
|
175
|
-
path: string;
|
|
202
|
+
packageId: string;
|
|
176
203
|
postinstallscript: string;
|
|
177
204
|
postinstallurl: string;
|
|
178
205
|
preserve: boolean;
|
|
@@ -186,8 +213,6 @@ export declare type PackageVersionCreateOptions = Partial<PackageVersionOptions
|
|
|
186
213
|
versiondescription: string;
|
|
187
214
|
versionname: string;
|
|
188
215
|
versionnumber: string;
|
|
189
|
-
wait: Duration;
|
|
190
|
-
pollInterval: Duration;
|
|
191
216
|
profileApi: PackageProfileApi;
|
|
192
217
|
}>;
|
|
193
218
|
export declare type PackageVersionCreateRequestQueryOptions = {
|
package/lib/package/index.d.ts
CHANGED
package/lib/package/index.js
CHANGED
|
@@ -35,4 +35,5 @@ Object.defineProperty(exports, "deletePackage", { enumerable: true, get: functio
|
|
|
35
35
|
var packageUninstall_1 = require("./packageUninstall");
|
|
36
36
|
Object.defineProperty(exports, "uninstallPackage", { enumerable: true, get: function () { return packageUninstall_1.uninstallPackage; } });
|
|
37
37
|
__exportStar(require("./packageInstalledList"), exports);
|
|
38
|
+
__exportStar(require("./packageVersionCreateRequestReport"), exports);
|
|
38
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -30,17 +30,24 @@ export declare class PackageProfileApi extends AsyncCreatable<ProfileApiOptions>
|
|
|
30
30
|
* @param excludedDirectories Directories to not include profiles from
|
|
31
31
|
*/
|
|
32
32
|
generateProfiles(destPath: string, manifest: {
|
|
33
|
-
Package: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
Package: Array<{
|
|
34
|
+
name: string[];
|
|
35
|
+
members: string[];
|
|
36
|
+
}>;
|
|
37
|
+
}, excludedDirectories?: string[]): string[];
|
|
37
38
|
/**
|
|
38
39
|
* Filter out all profiles in the manifest and if any profiles exists in the workspace, add them to the manifest.
|
|
39
40
|
*
|
|
40
41
|
* @param typesArr array of objects { name[], members[] } that represent package types JSON.
|
|
41
42
|
* @param excludedDirectories Direcotires not to generate profiles for
|
|
42
43
|
*/
|
|
43
|
-
filterAndGenerateProfilesForManifest(typesArr:
|
|
44
|
+
filterAndGenerateProfilesForManifest(typesArr: Array<{
|
|
45
|
+
name: string[];
|
|
46
|
+
members: string[];
|
|
47
|
+
}>, excludedDirectories?: string[]): Array<{
|
|
48
|
+
name: string[];
|
|
49
|
+
members: string[];
|
|
50
|
+
}>;
|
|
44
51
|
getProfileInformation(): ProfileInformation[];
|
|
45
52
|
private copyNodes;
|
|
46
53
|
private findAllProfiles;
|
|
@@ -115,9 +115,9 @@ class PackageProfileApi extends kit_1.AsyncCreatable {
|
|
|
115
115
|
let hasNodes = false;
|
|
116
116
|
// We need to keep track of all the members for when we package up the "OtherProfileSettings"
|
|
117
117
|
let allMembers = [];
|
|
118
|
-
manifest.Package.
|
|
119
|
-
const name = element
|
|
120
|
-
const members = element
|
|
118
|
+
manifest.Package.forEach((element) => {
|
|
119
|
+
const name = element.name;
|
|
120
|
+
const members = element.members;
|
|
121
121
|
allMembers = allMembers.concat(members);
|
|
122
122
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
123
123
|
const idx = this.nodeEntities.name.indexOf(name[0]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Duration } from '@salesforce/kit';
|
|
2
|
-
import {
|
|
2
|
+
import { PackageSaveResult, PackageVersionCreateOptions, PackageVersionCreateRequestResult, PackageVersionOptions, PackageVersionReportResult } from '../interfaces';
|
|
3
3
|
export declare class PackageVersion {
|
|
4
4
|
private options;
|
|
5
5
|
private readonly project;
|
|
@@ -9,8 +9,12 @@ export declare class PackageVersion {
|
|
|
9
9
|
* Creates a new package version.
|
|
10
10
|
*
|
|
11
11
|
* @param options
|
|
12
|
+
* @param polling frequency and timeout Durations to be used in polling
|
|
12
13
|
*/
|
|
13
|
-
create(options: PackageVersionCreateOptions
|
|
14
|
+
create(options: PackageVersionCreateOptions, polling?: {
|
|
15
|
+
frequency: Duration;
|
|
16
|
+
timeout: Duration;
|
|
17
|
+
}): Promise<Partial<PackageVersionCreateRequestResult>>;
|
|
14
18
|
/**
|
|
15
19
|
* Deletes a package version.
|
|
16
20
|
*
|
|
@@ -43,25 +47,18 @@ export declare class PackageVersion {
|
|
|
43
47
|
* progress and current status. Events also carry a payload of type PackageVersionCreateRequestResult.
|
|
44
48
|
*
|
|
45
49
|
* @param createPackageVersionRequestId
|
|
46
|
-
* @param
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
* @param polling frequency and timeout Durations to be used in polling
|
|
51
|
+
* */
|
|
52
|
+
waitForCreateVersion(createPackageVersionRequestId: string, polling: {
|
|
53
|
+
frequency: Duration;
|
|
54
|
+
timeout: Duration;
|
|
55
|
+
}): Promise<PackageVersionCreateRequestResult>;
|
|
50
56
|
convert(): Promise<void>;
|
|
51
57
|
install(): Promise<void>;
|
|
52
58
|
list(): Promise<void>;
|
|
53
59
|
uninstall(): Promise<void>;
|
|
54
60
|
update(): Promise<void>;
|
|
55
61
|
private updateDeprecation;
|
|
56
|
-
/**
|
|
57
|
-
* Increase the wait time for a package version that is org dependent.
|
|
58
|
-
*
|
|
59
|
-
* @param resolvedPackageId
|
|
60
|
-
* @param pollInterval
|
|
61
|
-
* @param wait
|
|
62
|
-
* @private
|
|
63
|
-
*/
|
|
64
|
-
private resolveOrgDependentPollingTime;
|
|
65
62
|
private updateProjectWithPackageVersion;
|
|
66
63
|
private generatePackageDirectory;
|
|
67
64
|
}
|
|
@@ -10,15 +10,12 @@ exports.PackageVersion = void 0;
|
|
|
10
10
|
const core_1 = require("@salesforce/core");
|
|
11
11
|
const kit_1 = require("@salesforce/kit");
|
|
12
12
|
const pkgUtils = require("../utils/packageUtils");
|
|
13
|
-
const utils_1 = require("../utils");
|
|
14
13
|
const packageUtils_1 = require("../utils/packageUtils");
|
|
15
14
|
const packageVersionCreate_1 = require("./packageVersionCreate");
|
|
16
15
|
const packageVersionReport_1 = require("./packageVersionReport");
|
|
17
16
|
const packageVersionCreateRequestReport_1 = require("./packageVersionCreateRequestReport");
|
|
18
17
|
const package_1 = require("./package");
|
|
19
18
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
20
|
-
// const messages = Messages.loadMessages('@salesforce/packaging', 'messages');
|
|
21
|
-
// const logger = Logger.childFromRoot('packageVersionCreate');
|
|
22
19
|
class PackageVersion {
|
|
23
20
|
constructor(options) {
|
|
24
21
|
this.options = options;
|
|
@@ -29,16 +26,19 @@ class PackageVersion {
|
|
|
29
26
|
* Creates a new package version.
|
|
30
27
|
*
|
|
31
28
|
* @param options
|
|
29
|
+
* @param polling frequency and timeout Durations to be used in polling
|
|
32
30
|
*/
|
|
33
|
-
async create(options
|
|
31
|
+
async create(options, polling = {
|
|
32
|
+
frequency: kit_1.Duration.seconds(0),
|
|
33
|
+
timeout: kit_1.Duration.seconds(0),
|
|
34
|
+
}) {
|
|
34
35
|
const pvc = new packageVersionCreate_1.PackageVersionCreate({ ...options, ...this.options });
|
|
35
36
|
const createResult = await pvc.createPackageVersion();
|
|
36
|
-
|
|
37
|
+
return await this.waitForCreateVersion(createResult.Id, polling).catch((err) => {
|
|
37
38
|
// TODO
|
|
38
39
|
// until package2 is GA, wrap perm-based errors w/ 'contact sfdc' action (REMOVE once package2 is GA'd)
|
|
39
40
|
throw pkgUtils.applyErrorAction(err);
|
|
40
41
|
});
|
|
41
|
-
return waitResult;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Deletes a package version.
|
|
@@ -97,16 +97,13 @@ class PackageVersion {
|
|
|
97
97
|
* progress and current status. Events also carry a payload of type PackageVersionCreateRequestResult.
|
|
98
98
|
*
|
|
99
99
|
* @param createPackageVersionRequestId
|
|
100
|
-
* @param
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
const result = await this.getCreateVersionReport(createPackageVersionRequestId);
|
|
106
|
-
return result;
|
|
100
|
+
* @param polling frequency and timeout Durations to be used in polling
|
|
101
|
+
* */
|
|
102
|
+
async waitForCreateVersion(createPackageVersionRequestId, polling) {
|
|
103
|
+
if (polling.timeout?.milliseconds <= 0) {
|
|
104
|
+
return await this.getCreateVersionReport(createPackageVersionRequestId);
|
|
107
105
|
}
|
|
108
|
-
|
|
109
|
-
let remainingWaitTime = wait;
|
|
106
|
+
let remainingWaitTime = polling.timeout;
|
|
110
107
|
let report;
|
|
111
108
|
const pollingClient = await core_1.PollingClient.create({
|
|
112
109
|
poll: async () => {
|
|
@@ -114,7 +111,7 @@ class PackageVersion {
|
|
|
114
111
|
switch (report.Status) {
|
|
115
112
|
case 'Queued':
|
|
116
113
|
await core_1.Lifecycle.getInstance().emit('enqueued', { ...report, remainingWaitTime });
|
|
117
|
-
remainingWaitTime = kit_1.Duration.seconds(remainingWaitTime.seconds -
|
|
114
|
+
remainingWaitTime = kit_1.Duration.seconds(remainingWaitTime.seconds - polling.frequency.seconds);
|
|
118
115
|
return {
|
|
119
116
|
completed: false,
|
|
120
117
|
payload: report,
|
|
@@ -126,7 +123,7 @@ class PackageVersion {
|
|
|
126
123
|
case 'VerifyingMetadata':
|
|
127
124
|
case 'FinalizingPackageVersion':
|
|
128
125
|
await core_1.Lifecycle.getInstance().emit('in-progress', { ...report, remainingWaitTime });
|
|
129
|
-
remainingWaitTime = kit_1.Duration.seconds(remainingWaitTime.seconds -
|
|
126
|
+
remainingWaitTime = kit_1.Duration.seconds(remainingWaitTime.seconds - polling.frequency.seconds);
|
|
130
127
|
return {
|
|
131
128
|
completed: false,
|
|
132
129
|
payload: report,
|
|
@@ -134,14 +131,25 @@ class PackageVersion {
|
|
|
134
131
|
case 'Success':
|
|
135
132
|
await this.updateProjectWithPackageVersion(this.project, report);
|
|
136
133
|
await core_1.Lifecycle.getInstance().emit('success', report);
|
|
134
|
+
if (!process.env.SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_CREATE) {
|
|
135
|
+
// get the newly created package version from the server
|
|
136
|
+
const versionResult = (await this.connection.tooling.query(`SELECT Branch, MajorVersion, MinorVersion, PatchVersion, BuildNumber FROM Package2Version WHERE SubscriberPackageVersionId='${report.SubscriberPackageVersionId}'`)).records[0];
|
|
137
|
+
const version = `${(0, packageUtils_1.getPackageAliasesFromId)(report.Package2Id, this.project).join()}@${versionResult.MajorVersion ?? 0}.${versionResult.MinorVersion ?? 0}.${versionResult.PatchVersion ?? 0}`;
|
|
138
|
+
const build = versionResult.BuildNumber ? `-${versionResult.BuildNumber}` : '';
|
|
139
|
+
const branch = versionResult.Branch ? `-${versionResult.Branch}` : '';
|
|
140
|
+
// set packageAliases entry '<package>@<major>.<minor>.<patch>-<build>-<branch>: <result.subscriberPackageVersionId>'
|
|
141
|
+
this.project.getSfProjectJson().getContents().packageAliases[`${version}${build}${branch}`] =
|
|
142
|
+
report.SubscriberPackageVersionId;
|
|
143
|
+
await this.project.getSfProjectJson().write();
|
|
144
|
+
}
|
|
137
145
|
return { completed: true, payload: report };
|
|
138
146
|
case 'Error':
|
|
139
147
|
await core_1.Lifecycle.getInstance().emit('error', report);
|
|
140
148
|
return { completed: true, payload: report };
|
|
141
149
|
}
|
|
142
150
|
},
|
|
143
|
-
frequency:
|
|
144
|
-
timeout:
|
|
151
|
+
frequency: polling.frequency,
|
|
152
|
+
timeout: polling.timeout,
|
|
145
153
|
});
|
|
146
154
|
try {
|
|
147
155
|
return pollingClient.subscribe();
|
|
@@ -179,37 +187,11 @@ class PackageVersion {
|
|
|
179
187
|
};
|
|
180
188
|
const updateResult = await this.connection.tooling.update('Package2Version', request);
|
|
181
189
|
if (!updateResult.success) {
|
|
182
|
-
throw (0,
|
|
190
|
+
throw (0, packageUtils_1.combineSaveErrors)('Package2', 'update', updateResult.errors);
|
|
183
191
|
}
|
|
184
192
|
updateResult.id = await pkgUtils.getSubscriberPackageVersionId(packageVersionId, this.connection);
|
|
185
193
|
return updateResult;
|
|
186
194
|
}
|
|
187
|
-
/**
|
|
188
|
-
* Increase the wait time for a package version that is org dependent.
|
|
189
|
-
*
|
|
190
|
-
* @param resolvedPackageId
|
|
191
|
-
* @param pollInterval
|
|
192
|
-
* @param wait
|
|
193
|
-
* @private
|
|
194
|
-
*/
|
|
195
|
-
async resolveOrgDependentPollingTime(resolvedPackageId, wait, pollInterval) {
|
|
196
|
-
// If we are polling check to see if the package is Org-Dependent, if so, update the poll time
|
|
197
|
-
if (wait.milliseconds > 0) {
|
|
198
|
-
const query = `SELECT IsOrgDependent FROM Package2 WHERE Id = '${resolvedPackageId}'`;
|
|
199
|
-
try {
|
|
200
|
-
const pkgQueryResult = await this.connection.singleRecordQuery(query, {
|
|
201
|
-
tooling: true,
|
|
202
|
-
});
|
|
203
|
-
if (pkgQueryResult.IsOrgDependent) {
|
|
204
|
-
return kit_1.Duration.seconds((60 / pollInterval.seconds) * wait.seconds);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
catch {
|
|
208
|
-
// do nothing
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return wait;
|
|
212
|
-
}
|
|
213
195
|
async updateProjectWithPackageVersion(withProject, results) {
|
|
214
196
|
if (withProject && !process.env.SFDX_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE) {
|
|
215
197
|
const query = `SELECT Name, Package2Id, MajorVersion, MinorVersion, PatchVersion, BuildNumber, Description, Branch FROM Package2Version WHERE Id = '${results.Package2VersionId}'`;
|
|
@@ -1,61 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PackageVersionCreateRequestResult, PackageVersionCreateOptions } from '../interfaces';
|
|
1
|
+
import { PackageVersionCreateOptions, PackageVersionCreateRequestResult } from '../interfaces';
|
|
3
2
|
export declare class PackageVersionCreate {
|
|
4
3
|
private options;
|
|
5
4
|
private apiVersionFromPackageXml;
|
|
6
5
|
private readonly project;
|
|
7
6
|
private readonly connection;
|
|
7
|
+
private packageObject;
|
|
8
|
+
private packageType;
|
|
9
|
+
private packageId;
|
|
10
|
+
private packageAlias;
|
|
8
11
|
constructor(options: PackageVersionCreateOptions);
|
|
9
12
|
createPackageVersion(): Promise<Partial<PackageVersionCreateRequestResult>>;
|
|
10
|
-
listRequest(createdlastdays?: number, status?: string): Promise<PackageVersionCreateRequestResult[]>;
|
|
11
|
-
listRequestById(id: string, connection: Connection): Promise<PackageVersionCreateRequestResult[]>;
|
|
12
13
|
private generateMDFolderForArtifact;
|
|
13
14
|
private validateDependencyValues;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* A dependency in the workspace config file may be specified using either a subscriber package version id (04t)
|
|
17
|
+
* or a package Id (0Ho) + a version number. Additionally, a build number may be the actual build number, or a
|
|
18
|
+
* keyword: LATEST or RELEASED (meaning the latest or released build number for a given major.minor.patch).
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
20
|
+
* This method resolves a package Id + version number to a subscriber package version id (04t)
|
|
21
|
+
* and adds it as a SubscriberPackageVersionId parameter in the dependency object.
|
|
21
22
|
*/
|
|
22
23
|
private retrieveSubscriberPackageVersionId;
|
|
23
24
|
private resolveBuildNumber;
|
|
24
25
|
private createRequestObject;
|
|
25
|
-
private getPackageDescriptorJsonFromPackageId;
|
|
26
26
|
/**
|
|
27
27
|
* Convert the list of command line options to a JSON object that can be used to create an Package2VersionCreateRequest entity.
|
|
28
28
|
*
|
|
29
|
-
* @param options
|
|
30
|
-
* @param packageId
|
|
31
|
-
* @param versionNumberString
|
|
32
29
|
* @returns {{Package2Id: (*|p|boolean), Package2VersionMetadata: *, Tag: *, Branch: number}}
|
|
33
30
|
* @private
|
|
34
31
|
*/
|
|
35
32
|
private createPackageVersionCreateRequestFromOptions;
|
|
33
|
+
private cleanGeneratedPackage;
|
|
36
34
|
private resolveApexTestPermissions;
|
|
37
35
|
private resolveUnpackagedMetadata;
|
|
38
|
-
private getPackagePropertyFromPackage;
|
|
39
|
-
private getPackageValuePropertyFromDirectory;
|
|
40
|
-
/**
|
|
41
|
-
* Returns the property value that corresponds to the propertyToLookup. This value found for a particular
|
|
42
|
-
* package directory element that matches the knownProperty and knownValue. In other words, we locate a package
|
|
43
|
-
* directory element whose knownProperty matches the knownValue, then we grab the value for the propertyToLookup
|
|
44
|
-
* and return it.
|
|
45
|
-
*
|
|
46
|
-
* @param packageDirs The list of all the package directories from the sfdx-project.json
|
|
47
|
-
* @param propertyToLookup The property ID whose value we want to find
|
|
48
|
-
* @param knownProperty The JSON property in the packageDirectories that is already known
|
|
49
|
-
* @param knownValue The value that corresponds to the knownProperty in the packageDirectories JSON
|
|
50
|
-
* @param knownFlag The flag details e.g. short/long name, etc. Only used for the error message
|
|
51
|
-
* @param options
|
|
52
|
-
*/
|
|
53
|
-
private getConfigPackageDirectoriesValue;
|
|
54
36
|
private packageVersionCreate;
|
|
55
|
-
private resolveCanonicalPackageProperty;
|
|
56
|
-
private validateVersionNumber;
|
|
57
37
|
private resolveUserLicenses;
|
|
58
|
-
private
|
|
38
|
+
private validateOptionsForPackageType;
|
|
59
39
|
/**
|
|
60
40
|
* Cleans invalid attribute(s) from the packageDescriptorJSON
|
|
61
41
|
*/
|