@simplysf/simply-package 1.0.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.
- package/CHANGELOG.md +0 -0
- package/LICENSE.txt +12 -0
- package/README.md +195 -0
- package/lib/commands/simply/package/dependencies/install.d.ts +29 -0
- package/lib/commands/simply/package/dependencies/install.js +335 -0
- package/lib/commands/simply/package/dependencies/install.js.map +1 -0
- package/lib/commands/simply/package/version/cleanup.d.ts +20 -0
- package/lib/commands/simply/package/version/cleanup.js +113 -0
- package/lib/commands/simply/package/version/cleanup.js.map +1 -0
- package/lib/common/packageUtils.d.ts +11 -0
- package/lib/common/packageUtils.js +71 -0
- package/lib/common/packageUtils.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -0
- package/messages/simply.package.dependencies.install.md +151 -0
- package/messages/simply.package.version.cleanup.md +39 -0
- package/npm-shrinkwrap.json +17752 -0
- package/oclif.lock +9601 -0
- package/oclif.manifest.json +317 -0
- package/package.json +226 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"simply:package:dependencies:install": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Installs all specified package dependencies in a Salesforce DX project using the sfdx-project.json definition.",
|
|
7
|
+
"examples": [
|
|
8
|
+
"<%= config.bin %> <%= command.id %> --target-org myTargetOrg --target-dev-hub myTargetDevHub",
|
|
9
|
+
"<%= config.bin %> <%= command.id %> --target-org myTargetOrg --target-dev-hub myTargetDevHub --installation-key \"MyPackage1Alias:MyPackage1Key\"",
|
|
10
|
+
"<%= config.bin %> <%= command.id %> --target-org myTargetOrg --target-dev-hub myTargetDevHub --installation-key \"MyPackage1Alias:MyPackage1Key\" --installation-key \"MyPackage2Alias:MyPackage2Key\""
|
|
11
|
+
],
|
|
12
|
+
"flags": {
|
|
13
|
+
"json": {
|
|
14
|
+
"description": "Format output as json.",
|
|
15
|
+
"helpGroup": "GLOBAL",
|
|
16
|
+
"name": "json",
|
|
17
|
+
"allowNo": false,
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"apex-compile": {
|
|
21
|
+
"char": "a",
|
|
22
|
+
"description": "Applies to unlocked packages only. Specifies whether to compile all Apex in the org and package, or only the Apex in the package.\r\n\r\nFor package installs into production orgs, or any org that has Apex Compile on Deploy enabled, the platform compiles all Apex in the org after the package install or upgrade operation completes.\r\n\r\nThis approach assures that package installs and upgrades don’t impact the performance of an org, and is done even if --apex-compile package is specified.",
|
|
23
|
+
"name": "apex-compile",
|
|
24
|
+
"summary": "Compile all Apex in the org and package, or only Apex in the package; unlocked packages only.",
|
|
25
|
+
"hasDynamicHelp": false,
|
|
26
|
+
"multiple": false,
|
|
27
|
+
"options": [
|
|
28
|
+
"all",
|
|
29
|
+
"package"
|
|
30
|
+
],
|
|
31
|
+
"type": "option"
|
|
32
|
+
},
|
|
33
|
+
"api-version": {
|
|
34
|
+
"description": "Override the api version used for api requests made by this command",
|
|
35
|
+
"name": "api-version",
|
|
36
|
+
"hasDynamicHelp": false,
|
|
37
|
+
"multiple": false,
|
|
38
|
+
"type": "option"
|
|
39
|
+
},
|
|
40
|
+
"branch": {
|
|
41
|
+
"char": "z",
|
|
42
|
+
"description": "For dependencies specified by Package/VersionNumber combination, you can specify the branch group of builds to work from by entering the branch build name. If not specified, the builds from NULL branch will be considered.",
|
|
43
|
+
"name": "branch",
|
|
44
|
+
"summary": "Package branch to consider when specifiying a Package/VersionNumber combination",
|
|
45
|
+
"default": "",
|
|
46
|
+
"hasDynamicHelp": false,
|
|
47
|
+
"multiple": false,
|
|
48
|
+
"type": "option"
|
|
49
|
+
},
|
|
50
|
+
"install-type": {
|
|
51
|
+
"char": "i",
|
|
52
|
+
"description": "If 'All' is specified, then all packages specified in package dependencies are installed, regardless of if the version already is installed in the org. If 'Delta' is specified, then only packages that differ from what is installed in the org will be installed.",
|
|
53
|
+
"name": "install-type",
|
|
54
|
+
"summary": "Install all packages or only deltas.",
|
|
55
|
+
"default": "Delta",
|
|
56
|
+
"hasDynamicHelp": false,
|
|
57
|
+
"multiple": false,
|
|
58
|
+
"options": [
|
|
59
|
+
"All",
|
|
60
|
+
"Delta"
|
|
61
|
+
],
|
|
62
|
+
"type": "option"
|
|
63
|
+
},
|
|
64
|
+
"installation-key": {
|
|
65
|
+
"char": "k",
|
|
66
|
+
"description": "Installation key for key-protected packages in the key:value format of SubscriberPackageVersionId:Key",
|
|
67
|
+
"name": "installation-key",
|
|
68
|
+
"summary": "Installation key for key-protected packages",
|
|
69
|
+
"hasDynamicHelp": false,
|
|
70
|
+
"multiple": true,
|
|
71
|
+
"type": "option"
|
|
72
|
+
},
|
|
73
|
+
"no-prompt": {
|
|
74
|
+
"char": "r",
|
|
75
|
+
"description": "Allows the following without an explicit confirmation response: 1) Remote Site Settings and Content Security Policy websites to send or receive data, and 2) --upgrade-type Delete to proceed.",
|
|
76
|
+
"name": "no-prompt",
|
|
77
|
+
"required": false,
|
|
78
|
+
"summary": "Don't prompt for confirmation.",
|
|
79
|
+
"allowNo": false,
|
|
80
|
+
"type": "boolean"
|
|
81
|
+
},
|
|
82
|
+
"publish-wait": {
|
|
83
|
+
"char": "b",
|
|
84
|
+
"name": "publish-wait",
|
|
85
|
+
"summary": "Maximum number of minutes to wait for the Subscriber Package Version ID to become available in the target org before canceling the install request.",
|
|
86
|
+
"default": {
|
|
87
|
+
"quantity": 0,
|
|
88
|
+
"unit": 0
|
|
89
|
+
},
|
|
90
|
+
"hasDynamicHelp": false,
|
|
91
|
+
"multiple": false,
|
|
92
|
+
"type": "option"
|
|
93
|
+
},
|
|
94
|
+
"security-type": {
|
|
95
|
+
"char": "s",
|
|
96
|
+
"name": "security-type",
|
|
97
|
+
"summary": "Security access type for the installed package. (deprecation notice: The default --security-type value will change from AllUsers to AdminsOnly in v47.0 or later.)",
|
|
98
|
+
"default": "AdminsOnly",
|
|
99
|
+
"hasDynamicHelp": false,
|
|
100
|
+
"multiple": false,
|
|
101
|
+
"options": [
|
|
102
|
+
"AllUsers",
|
|
103
|
+
"AdminsOnly"
|
|
104
|
+
],
|
|
105
|
+
"type": "option"
|
|
106
|
+
},
|
|
107
|
+
"skip-handlers": {
|
|
108
|
+
"char": "l",
|
|
109
|
+
"description": "Allows the installer of a package to optionally skip install handlers in order to decrease overall installation time (available handlers: FeatureEnforcement).",
|
|
110
|
+
"hidden": true,
|
|
111
|
+
"name": "skip-handlers",
|
|
112
|
+
"summary": "Skip install handlers (available handlers: FeatureEnforcement).",
|
|
113
|
+
"hasDynamicHelp": false,
|
|
114
|
+
"multiple": true,
|
|
115
|
+
"options": [
|
|
116
|
+
"FeatureEnforcement"
|
|
117
|
+
],
|
|
118
|
+
"type": "option"
|
|
119
|
+
},
|
|
120
|
+
"target-dev-hub": {
|
|
121
|
+
"char": "v",
|
|
122
|
+
"name": "target-dev-hub",
|
|
123
|
+
"summary": "Username or alias of the Dev Hub org.",
|
|
124
|
+
"hasDynamicHelp": false,
|
|
125
|
+
"multiple": false,
|
|
126
|
+
"type": "option"
|
|
127
|
+
},
|
|
128
|
+
"target-org": {
|
|
129
|
+
"char": "o",
|
|
130
|
+
"name": "target-org",
|
|
131
|
+
"noCacheDefault": true,
|
|
132
|
+
"required": true,
|
|
133
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
134
|
+
"hasDynamicHelp": true,
|
|
135
|
+
"multiple": false,
|
|
136
|
+
"type": "option"
|
|
137
|
+
},
|
|
138
|
+
"upgrade-type": {
|
|
139
|
+
"char": "t",
|
|
140
|
+
"description": "For package upgrades, specifies whether to mark all removed components as deprecated (DeprecateOnly), to delete removed components that can be safely deleted and deprecate the others (Mixed), or to delete all removed components, except for custom objects and custom fields, that don't have dependencies (Delete). The default is Mixed. Can specify DeprecateOnly or Delete only for unlocked package upgrades.",
|
|
141
|
+
"name": "upgrade-type",
|
|
142
|
+
"summary": "Upgrade type for the package installation; available only for unlocked packages.",
|
|
143
|
+
"default": "Mixed",
|
|
144
|
+
"hasDynamicHelp": false,
|
|
145
|
+
"multiple": false,
|
|
146
|
+
"options": [
|
|
147
|
+
"DeprecateOnly",
|
|
148
|
+
"Mixed",
|
|
149
|
+
"Delete"
|
|
150
|
+
],
|
|
151
|
+
"type": "option"
|
|
152
|
+
},
|
|
153
|
+
"wait": {
|
|
154
|
+
"char": "w",
|
|
155
|
+
"name": "wait",
|
|
156
|
+
"summary": "Number of minutes to wait for installation status.",
|
|
157
|
+
"default": {
|
|
158
|
+
"quantity": 30,
|
|
159
|
+
"unit": 0
|
|
160
|
+
},
|
|
161
|
+
"hasDynamicHelp": false,
|
|
162
|
+
"multiple": false,
|
|
163
|
+
"type": "option"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"hasDynamicHelp": true,
|
|
167
|
+
"hiddenAliases": [],
|
|
168
|
+
"id": "simply:package:dependencies:install",
|
|
169
|
+
"pluginAlias": "@simplysf/simply-package",
|
|
170
|
+
"pluginName": "@simplysf/simply-package",
|
|
171
|
+
"pluginType": "core",
|
|
172
|
+
"strict": true,
|
|
173
|
+
"summary": "Install package dependencies for a Salesforce project.",
|
|
174
|
+
"enableJsonFlag": true,
|
|
175
|
+
"SF_ENV": "SF_ENV",
|
|
176
|
+
"requiresProject": true,
|
|
177
|
+
"isESM": true,
|
|
178
|
+
"relativePath": [
|
|
179
|
+
"lib",
|
|
180
|
+
"commands",
|
|
181
|
+
"simply",
|
|
182
|
+
"package",
|
|
183
|
+
"dependencies",
|
|
184
|
+
"install.js"
|
|
185
|
+
],
|
|
186
|
+
"aliasPermutations": [],
|
|
187
|
+
"permutations": [
|
|
188
|
+
"simply:package:dependencies:install",
|
|
189
|
+
"package:simply:dependencies:install",
|
|
190
|
+
"package:dependencies:simply:install",
|
|
191
|
+
"package:dependencies:install:simply",
|
|
192
|
+
"simply:dependencies:package:install",
|
|
193
|
+
"dependencies:simply:package:install",
|
|
194
|
+
"dependencies:package:simply:install",
|
|
195
|
+
"dependencies:package:install:simply",
|
|
196
|
+
"simply:dependencies:install:package",
|
|
197
|
+
"dependencies:simply:install:package",
|
|
198
|
+
"dependencies:install:simply:package",
|
|
199
|
+
"dependencies:install:package:simply",
|
|
200
|
+
"simply:package:install:dependencies",
|
|
201
|
+
"package:simply:install:dependencies",
|
|
202
|
+
"package:install:simply:dependencies",
|
|
203
|
+
"package:install:dependencies:simply",
|
|
204
|
+
"simply:install:package:dependencies",
|
|
205
|
+
"install:simply:package:dependencies",
|
|
206
|
+
"install:package:simply:dependencies",
|
|
207
|
+
"install:package:dependencies:simply",
|
|
208
|
+
"simply:install:dependencies:package",
|
|
209
|
+
"install:simply:dependencies:package",
|
|
210
|
+
"install:dependencies:simply:package",
|
|
211
|
+
"install:dependencies:package:simply"
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"simply:package:version:cleanup": {
|
|
215
|
+
"aliases": [],
|
|
216
|
+
"args": {},
|
|
217
|
+
"description": "Delete package versions for a given package provided a MAJOR.MINOR.PATCH matcher. Does not delete released pacakge versions.",
|
|
218
|
+
"examples": [
|
|
219
|
+
"<%= config.bin %> <%= command.id %> --package 0Hoxx00000000CqCAI --matcher 2.10.0 --target-dev-hub myDevHub"
|
|
220
|
+
],
|
|
221
|
+
"flags": {
|
|
222
|
+
"json": {
|
|
223
|
+
"description": "Format output as json.",
|
|
224
|
+
"helpGroup": "GLOBAL",
|
|
225
|
+
"name": "json",
|
|
226
|
+
"allowNo": false,
|
|
227
|
+
"type": "boolean"
|
|
228
|
+
},
|
|
229
|
+
"api-version": {
|
|
230
|
+
"description": "Override the api version used for api requests made by this command",
|
|
231
|
+
"name": "api-version",
|
|
232
|
+
"hasDynamicHelp": false,
|
|
233
|
+
"multiple": false,
|
|
234
|
+
"type": "option"
|
|
235
|
+
},
|
|
236
|
+
"matcher": {
|
|
237
|
+
"char": "s",
|
|
238
|
+
"description": "The MAJOR.MINOR.PATCH matcher that should be used to find package versions to delete.",
|
|
239
|
+
"name": "matcher",
|
|
240
|
+
"required": true,
|
|
241
|
+
"summary": "MAJOR.MINOR.PATCH",
|
|
242
|
+
"hasDynamicHelp": false,
|
|
243
|
+
"multiple": false,
|
|
244
|
+
"type": "option"
|
|
245
|
+
},
|
|
246
|
+
"package": {
|
|
247
|
+
"char": "p",
|
|
248
|
+
"description": "The 0Ht Package Id that you wish to cleanup versions for.",
|
|
249
|
+
"name": "package",
|
|
250
|
+
"required": true,
|
|
251
|
+
"summary": "Package Id",
|
|
252
|
+
"hasDynamicHelp": false,
|
|
253
|
+
"multiple": false,
|
|
254
|
+
"type": "option"
|
|
255
|
+
},
|
|
256
|
+
"target-dev-hub": {
|
|
257
|
+
"char": "v",
|
|
258
|
+
"name": "target-dev-hub",
|
|
259
|
+
"noCacheDefault": true,
|
|
260
|
+
"required": true,
|
|
261
|
+
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
262
|
+
"hasDynamicHelp": true,
|
|
263
|
+
"multiple": false,
|
|
264
|
+
"type": "option"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"hasDynamicHelp": true,
|
|
268
|
+
"hiddenAliases": [],
|
|
269
|
+
"id": "simply:package:version:cleanup",
|
|
270
|
+
"pluginAlias": "@simplysf/simply-package",
|
|
271
|
+
"pluginName": "@simplysf/simply-package",
|
|
272
|
+
"pluginType": "core",
|
|
273
|
+
"strict": true,
|
|
274
|
+
"summary": "Cleanup package versions.",
|
|
275
|
+
"enableJsonFlag": true,
|
|
276
|
+
"SF_ENV": "SF_ENV",
|
|
277
|
+
"requiresProject": true,
|
|
278
|
+
"isESM": true,
|
|
279
|
+
"relativePath": [
|
|
280
|
+
"lib",
|
|
281
|
+
"commands",
|
|
282
|
+
"simply",
|
|
283
|
+
"package",
|
|
284
|
+
"version",
|
|
285
|
+
"cleanup.js"
|
|
286
|
+
],
|
|
287
|
+
"aliasPermutations": [],
|
|
288
|
+
"permutations": [
|
|
289
|
+
"simply:package:version:cleanup",
|
|
290
|
+
"package:simply:version:cleanup",
|
|
291
|
+
"package:version:simply:cleanup",
|
|
292
|
+
"package:version:cleanup:simply",
|
|
293
|
+
"simply:version:package:cleanup",
|
|
294
|
+
"version:simply:package:cleanup",
|
|
295
|
+
"version:package:simply:cleanup",
|
|
296
|
+
"version:package:cleanup:simply",
|
|
297
|
+
"simply:version:cleanup:package",
|
|
298
|
+
"version:simply:cleanup:package",
|
|
299
|
+
"version:cleanup:simply:package",
|
|
300
|
+
"version:cleanup:package:simply",
|
|
301
|
+
"simply:package:cleanup:version",
|
|
302
|
+
"package:simply:cleanup:version",
|
|
303
|
+
"package:cleanup:simply:version",
|
|
304
|
+
"package:cleanup:version:simply",
|
|
305
|
+
"simply:cleanup:package:version",
|
|
306
|
+
"cleanup:simply:package:version",
|
|
307
|
+
"cleanup:package:simply:version",
|
|
308
|
+
"cleanup:package:version:simply",
|
|
309
|
+
"simply:cleanup:version:package",
|
|
310
|
+
"cleanup:simply:version:package",
|
|
311
|
+
"cleanup:version:simply:package",
|
|
312
|
+
"cleanup:version:package:simply"
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"version": "1.0.0"
|
|
317
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@simplysf/simply-package",
|
|
3
|
+
"description": "Utilities for working with packages",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"author": "@ClayChipps",
|
|
6
|
+
"bugs": "https://github.com/SimplySF/simply-package/issues",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@oclif/core": "^3.19.4",
|
|
9
|
+
"@salesforce/core": "^6.5.5",
|
|
10
|
+
"@salesforce/kit": "^3.0.15",
|
|
11
|
+
"@salesforce/packaging": "^3.2.15",
|
|
12
|
+
"@salesforce/sf-plugins-core": "^5.0.13",
|
|
13
|
+
"@salesforce/ts-types": "^2.0.9"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@oclif/plugin-command-snapshot": "^5.0.6",
|
|
17
|
+
"@salesforce/cli-plugins-testkit": "^5.1.9",
|
|
18
|
+
"@salesforce/plugin-command-reference": "^3.0.67",
|
|
19
|
+
"@salesforce/ts-sinon": "1.4.19",
|
|
20
|
+
"@simplysf/dev-scripts": "^2.0.0",
|
|
21
|
+
"@types/shelljs": "^0.8.15",
|
|
22
|
+
"eslint-plugin-sf-plugin": "^1.17.3",
|
|
23
|
+
"oclif": "^4.4.8",
|
|
24
|
+
"shelljs": "^0.8.5",
|
|
25
|
+
"ts-node": "^10.9.2",
|
|
26
|
+
"typescript": "^5.3.3"
|
|
27
|
+
},
|
|
28
|
+
"config": {},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18.0.0"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"/lib",
|
|
34
|
+
"/messages",
|
|
35
|
+
"/npm-shrinkwrap.json",
|
|
36
|
+
"/oclif.lock",
|
|
37
|
+
"/oclif.manifest.json"
|
|
38
|
+
],
|
|
39
|
+
"homepage": "https://github.com/SimplySF/simply-package",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"force",
|
|
42
|
+
"salesforce",
|
|
43
|
+
"sfdx",
|
|
44
|
+
"salesforcedx",
|
|
45
|
+
"sfdx-plugin",
|
|
46
|
+
"sf-plugin",
|
|
47
|
+
"sf"
|
|
48
|
+
],
|
|
49
|
+
"license": "BSD-3-Clause",
|
|
50
|
+
"oclif": {
|
|
51
|
+
"additionalVersionFlags": [
|
|
52
|
+
"-v"
|
|
53
|
+
],
|
|
54
|
+
"additionalHelpFlags": [
|
|
55
|
+
"-h"
|
|
56
|
+
],
|
|
57
|
+
"bin": "sf",
|
|
58
|
+
"commands": "./lib/commands",
|
|
59
|
+
"devPlugins": [
|
|
60
|
+
"@oclif/plugin-command-snapshot",
|
|
61
|
+
"@oclif/plugin-help",
|
|
62
|
+
"@salesforce/plugin-command-reference"
|
|
63
|
+
],
|
|
64
|
+
"flexibleTaxonomy": true,
|
|
65
|
+
"plugins": [],
|
|
66
|
+
"repositoryPrefix": "<%- repo %>/blob/<%- version %>/<%- commandPath %>",
|
|
67
|
+
"topics": {
|
|
68
|
+
"simply": {
|
|
69
|
+
"description": "Commands for simplifying Salesforce",
|
|
70
|
+
"subtopics": {
|
|
71
|
+
"package": {
|
|
72
|
+
"description": "Commands for working with packages",
|
|
73
|
+
"subtopics": {
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"description": "Commands for working with package dependencies"
|
|
76
|
+
},
|
|
77
|
+
"version": {
|
|
78
|
+
"description": "Commands for working with package versions"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"topicSeparator": " "
|
|
86
|
+
},
|
|
87
|
+
"repository": "SimplySF/simply-package",
|
|
88
|
+
"scripts": {
|
|
89
|
+
"build": "wireit",
|
|
90
|
+
"clean": "sf-clean",
|
|
91
|
+
"clean-all": "sf-clean all",
|
|
92
|
+
"compile": "wireit",
|
|
93
|
+
"docs": "sf-docs",
|
|
94
|
+
"format": "wireit",
|
|
95
|
+
"link-check": "wireit",
|
|
96
|
+
"lint": "wireit",
|
|
97
|
+
"postpack": "sf-clean",
|
|
98
|
+
"prepack": "sf-prepack",
|
|
99
|
+
"prepare": "sf-install",
|
|
100
|
+
"readme": "oclif readme --no-aliases",
|
|
101
|
+
"test": "wireit",
|
|
102
|
+
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel --jobs 5",
|
|
103
|
+
"test:only": "wireit",
|
|
104
|
+
"test:watch": "mocha --watch \"./test/**/*.test.ts\""
|
|
105
|
+
},
|
|
106
|
+
"publishConfig": {
|
|
107
|
+
"access": "public"
|
|
108
|
+
},
|
|
109
|
+
"wireit": {
|
|
110
|
+
"build": {
|
|
111
|
+
"dependencies": [
|
|
112
|
+
"compile",
|
|
113
|
+
"lint"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"compile": {
|
|
117
|
+
"command": "tsc -p . --pretty --incremental",
|
|
118
|
+
"files": [
|
|
119
|
+
"src/**/*.ts",
|
|
120
|
+
"**/tsconfig.json",
|
|
121
|
+
"messages/**"
|
|
122
|
+
],
|
|
123
|
+
"output": [
|
|
124
|
+
"lib/**",
|
|
125
|
+
"*.tsbuildinfo"
|
|
126
|
+
],
|
|
127
|
+
"clean": "if-file-deleted"
|
|
128
|
+
},
|
|
129
|
+
"format": {
|
|
130
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
131
|
+
"files": [
|
|
132
|
+
"src/**/*.ts",
|
|
133
|
+
"test/**/*.ts",
|
|
134
|
+
"schemas/**/*.json",
|
|
135
|
+
"command-snapshot.json",
|
|
136
|
+
".prettier*"
|
|
137
|
+
],
|
|
138
|
+
"output": []
|
|
139
|
+
},
|
|
140
|
+
"lint": {
|
|
141
|
+
"command": "eslint src test --color --cache --cache-location .eslintcache",
|
|
142
|
+
"files": [
|
|
143
|
+
"src/**/*.ts",
|
|
144
|
+
"test/**/*.ts",
|
|
145
|
+
"messages/**",
|
|
146
|
+
"**/.eslint*",
|
|
147
|
+
"**/tsconfig.json"
|
|
148
|
+
],
|
|
149
|
+
"output": []
|
|
150
|
+
},
|
|
151
|
+
"test": {
|
|
152
|
+
"dependencies": [
|
|
153
|
+
"test:compile",
|
|
154
|
+
"test:only",
|
|
155
|
+
"test:command-reference",
|
|
156
|
+
"test:deprecation-policy",
|
|
157
|
+
"lint",
|
|
158
|
+
"test:json-schema",
|
|
159
|
+
"link-check"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"test:command-reference": {
|
|
163
|
+
"command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" commandreference:generate --erroronwarnings",
|
|
164
|
+
"files": [
|
|
165
|
+
"src/**/*.ts",
|
|
166
|
+
"messages/**",
|
|
167
|
+
"package.json"
|
|
168
|
+
],
|
|
169
|
+
"output": [
|
|
170
|
+
"tmp/root"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"test:deprecation-policy": {
|
|
174
|
+
"command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" snapshot:compare",
|
|
175
|
+
"files": [
|
|
176
|
+
"src/**/*.ts"
|
|
177
|
+
],
|
|
178
|
+
"output": [],
|
|
179
|
+
"dependencies": [
|
|
180
|
+
"compile"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"test:json-schema": {
|
|
184
|
+
"command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" schema:compare",
|
|
185
|
+
"files": [
|
|
186
|
+
"src/**/*.ts",
|
|
187
|
+
"schemas"
|
|
188
|
+
],
|
|
189
|
+
"output": []
|
|
190
|
+
},
|
|
191
|
+
"test:compile": {
|
|
192
|
+
"command": "tsc -p \"./test\" --pretty",
|
|
193
|
+
"files": [
|
|
194
|
+
"test/**/*.ts",
|
|
195
|
+
"**/tsconfig.json"
|
|
196
|
+
],
|
|
197
|
+
"output": []
|
|
198
|
+
},
|
|
199
|
+
"test:only": {
|
|
200
|
+
"command": "nyc mocha \"test/**/*.test.ts\"",
|
|
201
|
+
"env": {
|
|
202
|
+
"FORCE_COLOR": "2"
|
|
203
|
+
},
|
|
204
|
+
"files": [
|
|
205
|
+
"test/**/*.ts",
|
|
206
|
+
"src/**/*.ts",
|
|
207
|
+
"**/tsconfig.json",
|
|
208
|
+
".mocha*",
|
|
209
|
+
"!*.nut.ts",
|
|
210
|
+
".nycrc"
|
|
211
|
+
],
|
|
212
|
+
"output": []
|
|
213
|
+
},
|
|
214
|
+
"link-check": {
|
|
215
|
+
"command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|%s\" --markdown --retry --directory-listing --verbosity error",
|
|
216
|
+
"files": [
|
|
217
|
+
"./*.md",
|
|
218
|
+
"./!(CHANGELOG).md",
|
|
219
|
+
"messages/**/*.md"
|
|
220
|
+
],
|
|
221
|
+
"output": []
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"exports": "./lib/index.js",
|
|
225
|
+
"type": "module"
|
|
226
|
+
}
|