@salesforce/plugin-packaging 1.16.2 → 1.16.3
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { PackageVersionReportResult, PackagingSObjects } from '@salesforce/packaging';
|
|
2
|
+
import { CodeCoverage, PackageVersionReportResult, PackagingSObjects } from '@salesforce/packaging';
|
|
3
3
|
export type PackageVersionReportResultModified = Omit<PackageVersionReportResult, 'CodeCoverage' | 'HasPassedCodeCoverageCheck' | 'Package2' | 'HasMetadataRemoved' | 'PackageType'> & {
|
|
4
|
-
CodeCoverage: string;
|
|
4
|
+
CodeCoverage: CodeCoverage | string | undefined;
|
|
5
5
|
HasPassedCodeCoverageCheck: boolean | undefined | string;
|
|
6
6
|
Package2: Partial<Omit<PackagingSObjects.Package2, 'IsOrgDependent'> & {
|
|
7
7
|
IsOrgDependent: string;
|
|
@@ -84,7 +84,11 @@ class PackageVersionReportCommand extends sf_plugins_core_1.SfCommand {
|
|
|
84
84
|
{ key: messages.getMessage('ancestorVersion'), value: record.AncestorVersion },
|
|
85
85
|
{
|
|
86
86
|
key: pvlMessages.getMessage('codeCoverage'),
|
|
87
|
-
value: record.CodeCoverage
|
|
87
|
+
value: typeof record.CodeCoverage === 'string'
|
|
88
|
+
? record.CodeCoverage
|
|
89
|
+
: !record.CodeCoverage
|
|
90
|
+
? 'N/A'
|
|
91
|
+
: `${record.CodeCoverage.apexCodeCoveragePercentage.toFixed(2)}%`,
|
|
88
92
|
},
|
|
89
93
|
{
|
|
90
94
|
key: pvlMessages.getMessage('hasPassedCodeCoverageCheck'),
|
|
@@ -171,9 +175,7 @@ class PackageVersionReportCommand extends sf_plugins_core_1.SfCommand {
|
|
|
171
175
|
record.CodeCoverage = 'N/A';
|
|
172
176
|
}
|
|
173
177
|
else {
|
|
174
|
-
record.CodeCoverage = results.CodeCoverage
|
|
175
|
-
? `${results.CodeCoverage?.apexCodeCoveragePercentage}%`
|
|
176
|
-
: 'N/A';
|
|
178
|
+
record.CodeCoverage = results.CodeCoverage;
|
|
177
179
|
}
|
|
178
180
|
record.HasPassedCodeCoverageCheck =
|
|
179
181
|
results.Package2.IsOrgDependent || results.ValidationSkipped ? 'N/A' : results.HasPassedCodeCoverageCheck;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../src/commands/package/version/report.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iEAA4G;AAC5G,2CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../src/commands/package/version/report.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iEAA4G;AAC5G,2CAA4C;AAC5C,qDAAoH;AACpH,+BAA+B;AAE/B,oDAAyD;AAEzD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,CAAC;AACjG,MAAM,WAAW,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,sBAAsB,CAAC,CAAC;AAClG,MAAM,UAAU,GAAG,eAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,cAAc,CAAC,CAAC;AAUzF,MAAa,2BAA4B,SAAQ,2BAA6C;IAA9F;;QAoBY,yBAAoB,GAAG,KAAK,CAAC;IA2LzC,CAAC;IAzLQ,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAChE,MAAM,cAAc,GAAG,IAAI,0BAAc,CAAC;YACxC,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YACvE,OAAO,EAAE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xB,mCAAO,GAAG,CAAC,mCAAmC,EAAE,8BAA8B,CAAC,CAAC;AAChF,2CAAe,GAAG,IAAI,CAAC;AACvB,iCAAK,GAAG;IAC7B,QAAQ,EAAR,0BAAQ;IACR,gBAAgB,EAAE,yBAAe;IACjC,aAAa,EAAE,mDAAiC;IAChD,OAAO,EAAE,uBAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;QACrD,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,OAAO,EAAE,uBAAK,CAAC,OAAO,CAAC;QACrB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;KACtD,CAAC;CACH,CAAC"}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-packaging",
|
|
3
3
|
"description": "SFDX plugin that support Salesforce Packaging Platform",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.3",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Salesforce",
|
|
7
7
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
@@ -17,28 +17,27 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@oclif/plugin-command-snapshot": "^3.3.8",
|
|
19
19
|
"@oclif/plugin-version": "^1.2.0",
|
|
20
|
-
"@salesforce/cli-plugins-testkit": "^3.
|
|
20
|
+
"@salesforce/cli-plugins-testkit": "^3.3.0",
|
|
21
21
|
"@salesforce/dev-config": "^3.1.0",
|
|
22
|
-
"@salesforce/dev-scripts": "^
|
|
22
|
+
"@salesforce/dev-scripts": "^4.1.3",
|
|
23
23
|
"@salesforce/plugin-auth": "^2.7.7",
|
|
24
24
|
"@salesforce/plugin-command-reference": "^2.4.1",
|
|
25
|
-
"@salesforce/plugin-config": "^1.5.1",
|
|
26
25
|
"@salesforce/prettier-config": "^0.0.2",
|
|
27
26
|
"@salesforce/ts-sinon": "^1.4.6",
|
|
28
27
|
"@salesforce/ts-types": "^1.5.20",
|
|
29
28
|
"@swc/core": "^1.3.39",
|
|
30
29
|
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
31
|
-
"@typescript-eslint/parser": "^5.
|
|
30
|
+
"@typescript-eslint/parser": "^5.57.0",
|
|
32
31
|
"chai": "^4.3.7",
|
|
33
32
|
"eslint": "^8.35.0",
|
|
34
|
-
"eslint-config-prettier": "^8.
|
|
33
|
+
"eslint-config-prettier": "^8.8.0",
|
|
35
34
|
"eslint-config-salesforce": "^1.1.0",
|
|
36
35
|
"eslint-config-salesforce-license": "^0.2.0",
|
|
37
36
|
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
38
37
|
"eslint-plugin-header": "^3.1.1",
|
|
39
38
|
"eslint-plugin-import": "^2.27.5",
|
|
40
39
|
"eslint-plugin-jsdoc": "^39.8.0",
|
|
41
|
-
"eslint-plugin-sf-plugin": "^1.
|
|
40
|
+
"eslint-plugin-sf-plugin": "^1.14.0",
|
|
42
41
|
"husky": "^7.0.4",
|
|
43
42
|
"mocha": "^9.1.3",
|
|
44
43
|
"nyc": "^15.1.0",
|
|
@@ -48,7 +47,8 @@
|
|
|
48
47
|
"shx": "0.3.4",
|
|
49
48
|
"sinon": "^11.1.2",
|
|
50
49
|
"ts-node": "^10.8.1",
|
|
51
|
-
"typescript": "^4.9.4"
|
|
50
|
+
"typescript": "^4.9.4",
|
|
51
|
+
"wireit": "^0.9.5"
|
|
52
52
|
},
|
|
53
53
|
"config": {},
|
|
54
54
|
"engines": {
|
|
@@ -82,7 +82,6 @@
|
|
|
82
82
|
"@oclif/plugin-help",
|
|
83
83
|
"@oclif/plugin-command-snapshot",
|
|
84
84
|
"@salesforce/plugin-command-reference",
|
|
85
|
-
"@salesforce/plugin-config",
|
|
86
85
|
"@salesforce/plugin-auth"
|
|
87
86
|
],
|
|
88
87
|
"plugins": [],
|
|
@@ -134,32 +133,133 @@
|
|
|
134
133
|
},
|
|
135
134
|
"repository": "salesforcecli/plugin-packaging",
|
|
136
135
|
"scripts": {
|
|
137
|
-
"build": "
|
|
136
|
+
"build": "wireit",
|
|
138
137
|
"clean": "sf-clean",
|
|
139
138
|
"clean-all": "sf-clean all",
|
|
140
139
|
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
141
|
-
"compile": "
|
|
142
|
-
"format": "
|
|
143
|
-
"lint": "
|
|
140
|
+
"compile": "wireit",
|
|
141
|
+
"format": "wireit",
|
|
142
|
+
"lint": "wireit",
|
|
144
143
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
145
|
-
"posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema && yarn test:command-reference",
|
|
146
144
|
"prepack": "sf-prepack",
|
|
147
145
|
"prepare": "sf-install",
|
|
148
|
-
"
|
|
149
|
-
"test": "sf-test",
|
|
150
|
-
"test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
|
|
151
|
-
"test:deprecation-policy": "./bin/dev snapshot:compare",
|
|
146
|
+
"test": "wireit",
|
|
152
147
|
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 -t 1800000 --parallel --jobs 20",
|
|
153
148
|
"test:nuts:package": "nyc mocha \"test/commands/package/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
154
149
|
"test:nuts:package1": "nyc mocha \"test/commands/package1/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
155
|
-
"test:
|
|
150
|
+
"test:only": "wireit",
|
|
156
151
|
"version": "oclif readme"
|
|
157
152
|
},
|
|
158
153
|
"publishConfig": {
|
|
159
154
|
"access": "public"
|
|
160
155
|
},
|
|
156
|
+
"wireit": {
|
|
157
|
+
"build": {
|
|
158
|
+
"dependencies": [
|
|
159
|
+
"compile",
|
|
160
|
+
"lint"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"compile": {
|
|
164
|
+
"command": "tsc -p . --pretty --incremental",
|
|
165
|
+
"files": [
|
|
166
|
+
"src/**/*.ts",
|
|
167
|
+
"**/tsconfig.json",
|
|
168
|
+
"messages/**"
|
|
169
|
+
],
|
|
170
|
+
"output": [
|
|
171
|
+
"lib/**",
|
|
172
|
+
"*.tsbuildinfo"
|
|
173
|
+
],
|
|
174
|
+
"clean": "if-file-deleted"
|
|
175
|
+
},
|
|
176
|
+
"format": {
|
|
177
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
178
|
+
"files": [
|
|
179
|
+
"src/**/*.ts",
|
|
180
|
+
"test/**/*.ts",
|
|
181
|
+
"schemas/**/*.json",
|
|
182
|
+
"command-snapshot.json",
|
|
183
|
+
".prettier*"
|
|
184
|
+
],
|
|
185
|
+
"output": []
|
|
186
|
+
},
|
|
187
|
+
"lint": {
|
|
188
|
+
"command": "eslint src test --color --cache --cache-location .eslintcache",
|
|
189
|
+
"files": [
|
|
190
|
+
"src/**/*.ts",
|
|
191
|
+
"test/**/*.ts",
|
|
192
|
+
"messages/**",
|
|
193
|
+
"**/.eslint*",
|
|
194
|
+
"**/tsconfig.json"
|
|
195
|
+
],
|
|
196
|
+
"output": []
|
|
197
|
+
},
|
|
198
|
+
"test:compile": {
|
|
199
|
+
"command": "tsc -p \"./test\" --pretty",
|
|
200
|
+
"files": [
|
|
201
|
+
"test/**/*.ts",
|
|
202
|
+
"**/tsconfig.json"
|
|
203
|
+
],
|
|
204
|
+
"output": []
|
|
205
|
+
},
|
|
206
|
+
"test": {
|
|
207
|
+
"dependencies": [
|
|
208
|
+
"test:compile",
|
|
209
|
+
"test:only",
|
|
210
|
+
"test:command-reference",
|
|
211
|
+
"test:deprecation-policy",
|
|
212
|
+
"lint",
|
|
213
|
+
"test:json-schema"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"test:only": {
|
|
217
|
+
"command": "nyc mocha \"test/**/*.test.ts\"",
|
|
218
|
+
"env": {
|
|
219
|
+
"FORCE_COLOR": "2"
|
|
220
|
+
},
|
|
221
|
+
"files": [
|
|
222
|
+
"test/**/*.ts",
|
|
223
|
+
"src/**/*.ts",
|
|
224
|
+
"**/tsconfig.json",
|
|
225
|
+
".mocha*",
|
|
226
|
+
"!*.nut.ts",
|
|
227
|
+
".nycrc"
|
|
228
|
+
],
|
|
229
|
+
"output": []
|
|
230
|
+
},
|
|
231
|
+
"test:command-reference": {
|
|
232
|
+
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
|
|
233
|
+
"files": [
|
|
234
|
+
"src/**/*.ts",
|
|
235
|
+
"messages/**",
|
|
236
|
+
"package.json"
|
|
237
|
+
],
|
|
238
|
+
"output": [
|
|
239
|
+
"tmp/root"
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
"test:deprecation-policy": {
|
|
243
|
+
"command": "\"./bin/dev\" snapshot:compare",
|
|
244
|
+
"files": [
|
|
245
|
+
"src/**/*.ts"
|
|
246
|
+
],
|
|
247
|
+
"output": [],
|
|
248
|
+
"dependencies": [
|
|
249
|
+
"compile"
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
"test:json-schema": {
|
|
253
|
+
"command": "\"./bin/dev\" schema:compare",
|
|
254
|
+
"files": [
|
|
255
|
+
"src/**/*.ts",
|
|
256
|
+
"schemas"
|
|
257
|
+
],
|
|
258
|
+
"output": []
|
|
259
|
+
}
|
|
260
|
+
},
|
|
161
261
|
"sfdx": {
|
|
162
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/1.16.
|
|
163
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/1.16.
|
|
262
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/1.16.3.crt",
|
|
263
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/1.16.3.sig"
|
|
164
264
|
}
|
|
165
265
|
}
|
|
@@ -7,7 +7,14 @@
|
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
"CodeCoverage": {
|
|
10
|
-
"
|
|
10
|
+
"anyOf": [
|
|
11
|
+
{
|
|
12
|
+
"$ref": "#/definitions/CodeCoverage"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
11
18
|
},
|
|
12
19
|
"HasPassedCodeCoverageCheck": {
|
|
13
20
|
"type": ["boolean", "string"]
|
|
@@ -170,7 +177,24 @@
|
|
|
170
177
|
"type": "string"
|
|
171
178
|
}
|
|
172
179
|
},
|
|
173
|
-
"required": ["
|
|
180
|
+
"required": ["HasMetadataRemoved", "Package2", "Version"]
|
|
181
|
+
},
|
|
182
|
+
"CodeCoverage": {
|
|
183
|
+
"anyOf": [
|
|
184
|
+
{
|
|
185
|
+
"type": "null"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "object",
|
|
189
|
+
"properties": {
|
|
190
|
+
"apexCodeCoveragePercentage": {
|
|
191
|
+
"type": "number"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": ["apexCodeCoveragePercentage"],
|
|
195
|
+
"additionalProperties": false
|
|
196
|
+
}
|
|
197
|
+
]
|
|
174
198
|
},
|
|
175
199
|
"PackageType": {
|
|
176
200
|
"type": "string",
|