@salesforce/packaging 4.6.1 → 4.7.0
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.
|
@@ -16,4 +16,5 @@ export declare function createPackageVersionCreateRequest(context: {
|
|
|
16
16
|
buildinstance?: string;
|
|
17
17
|
seedmetadata?: string;
|
|
18
18
|
patchversion?: string;
|
|
19
|
+
codecoverage?: boolean;
|
|
19
20
|
}, packageId: string, apiVersion: string): Promise<PackagingSObjects.Package2VersionCreateRequest>;
|
|
@@ -112,6 +112,7 @@ async function convertPackage(pkg, connection, options, project) {
|
|
|
112
112
|
buildinstance: options.buildInstance,
|
|
113
113
|
seedmetadata: options.seedMetadata,
|
|
114
114
|
patchversion: options.patchversion,
|
|
115
|
+
codecoverage: options.codecoverage,
|
|
115
116
|
}, packageId,
|
|
116
117
|
// TODO: createPackageVersionCreateRequest requires apiVersion exist.
|
|
117
118
|
// UT fail if we validate that it exists (there might not even be a project)
|
|
@@ -214,6 +215,7 @@ async function createRequestObject(packageId, options, packageVersTmpRoot, packa
|
|
|
214
215
|
InstallKey: options.installationkey,
|
|
215
216
|
Instance: options.buildinstance,
|
|
216
217
|
IsConversionRequest: true,
|
|
218
|
+
CalculateCodeCoverage: options.codecoverage ?? false,
|
|
217
219
|
};
|
|
218
220
|
await node_fs_1.default.promises.rm(packageVersTmpRoot, { recursive: true });
|
|
219
221
|
return requestObject;
|