@salesforce/plugin-release-management 3.14.2 → 3.15.1
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.
|
@@ -7,6 +7,7 @@ export default class build extends SfCommand<void> {
|
|
|
7
7
|
static readonly flags: {
|
|
8
8
|
'start-from-npm-dist-tag': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
9
9
|
'start-from-github-ref': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
|
+
'release-channel': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
11
|
'build-only': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
12
|
resolutions: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
13
|
only: import("@oclif/core/lib/interfaces").OptionFlag<string[], import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
@@ -14,9 +15,6 @@ export default class build extends SfCommand<void> {
|
|
|
14
15
|
jit: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
16
|
label: import("@oclif/core/lib/interfaces").OptionFlag<string[], import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
17
|
patch: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
-
prerelease: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
18
|
-
snapshot: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
|
-
schema: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
20
18
|
};
|
|
21
19
|
run(): Promise<void>;
|
|
22
20
|
private getGithubRef;
|
|
@@ -18,9 +18,14 @@ const exec = (0, node_util_1.promisify)(child_process_1.exec);
|
|
|
18
18
|
core_2.Messages.importMessagesDirectory(__dirname);
|
|
19
19
|
const messages = core_2.Messages.loadMessages('@salesforce/plugin-release-management', 'cli.release.build');
|
|
20
20
|
class build extends sf_plugins_core_1.SfCommand {
|
|
21
|
+
/* eslint-disable complexity */
|
|
21
22
|
async run() {
|
|
22
23
|
const { flags } = await this.parse(build);
|
|
23
24
|
const pushChangesToGitHub = !flags['build-only'];
|
|
25
|
+
const isPrerelease = !['latest', 'latest-rc', 'nightly'].includes(flags['release-channel']);
|
|
26
|
+
if (isPrerelease) {
|
|
27
|
+
this.log(`NOTE: The release channel '${flags['release-channel']}' is not one of 'latest', 'latest-rc', 'nightly'. It will released as a prerelease.`);
|
|
28
|
+
}
|
|
24
29
|
const auth = pushChangesToGitHub
|
|
25
30
|
? (0, ts_types_1.ensureString)(new kit_1.Env().getString('GH_TOKEN') ?? new kit_1.Env().getString('GITHUB_TOKEN'), 'The GH_TOKEN env var is required to push changes to GitHub. Use the --build-only flag to skip GitHub operations (a manual push will then be needed)')
|
|
26
31
|
: undefined;
|
|
@@ -35,10 +40,10 @@ class build extends sf_plugins_core_1.SfCommand {
|
|
|
35
40
|
const currentVersion = repo.package.packageJson.version;
|
|
36
41
|
// TODO: We might want to check and see if nextVersion exists in npm
|
|
37
42
|
// Determine the next version based on if --patch was passed in or if it is a prerelease
|
|
38
|
-
const nextVersion = repo.package.determineNextVersion(flags.patch, flags
|
|
43
|
+
const nextVersion = repo.package.determineNextVersion(flags.patch, isPrerelease ? flags['release-channel'] : undefined);
|
|
39
44
|
repo.nextVersion = nextVersion;
|
|
40
45
|
// Prereleases and patches need special branch prefixes to trigger GitHub Actions
|
|
41
|
-
const branchPrefix = flags.patch ? 'patch/' :
|
|
46
|
+
const branchPrefix = flags.patch ? 'patch/' : isPrerelease ? 'prerelease/' : '';
|
|
42
47
|
const branchName = `${branchPrefix}${nextVersion}`;
|
|
43
48
|
// Ensure branch does not already exist on the remote (origin)
|
|
44
49
|
// We only look at remote branches since they are likely generated
|
|
@@ -49,14 +54,6 @@ class build extends sf_plugins_core_1.SfCommand {
|
|
|
49
54
|
this.log(`Starting from '${ref}' (${currentVersion}) and creating branch '${branchName}'`);
|
|
50
55
|
// Create a new branch that matches the next version
|
|
51
56
|
await this.exec(`git switch -c ${branchName}`);
|
|
52
|
-
if (flags.patch && pushChangesToGitHub) {
|
|
53
|
-
// Since patches can be created from any previous dist-tag or github ref,
|
|
54
|
-
// it is unlikely that we would be able to merge these into main.
|
|
55
|
-
// Before we make any changes, push this branch to use as our PR `base`.
|
|
56
|
-
// The build-patch.yml GHA will watch for merges into this branch to trigger a patch release
|
|
57
|
-
// TODO: ^ update this GHA reference once it is decided
|
|
58
|
-
await this.exec(`git push -u origin ${branchName}`);
|
|
59
|
-
}
|
|
60
57
|
// bump the version in the pjson to the next version for this tag
|
|
61
58
|
this.log(`Setting the version to ${nextVersion}`);
|
|
62
59
|
repo.package.setNextVersion(nextVersion);
|
|
@@ -91,12 +88,6 @@ class build extends sf_plugins_core_1.SfCommand {
|
|
|
91
88
|
await this.exec('npx yarn-deduplicate');
|
|
92
89
|
// Run an install with deduplicated dependencies (with scripts)
|
|
93
90
|
await this.exec('yarn install');
|
|
94
|
-
if (flags.snapshot) {
|
|
95
|
-
this.warn('snapshot flag is deprecated. Skipping snapshot updates.');
|
|
96
|
-
}
|
|
97
|
-
if (flags.schema) {
|
|
98
|
-
this.warn('schema flag is deprecated. Skipping schema updates.');
|
|
99
|
-
}
|
|
100
91
|
this.log('Updates complete');
|
|
101
92
|
if (pushChangesToGitHub) {
|
|
102
93
|
const octokit = new core_1.Octokit({ auth });
|
|
@@ -106,15 +97,20 @@ class build extends sf_plugins_core_1.SfCommand {
|
|
|
106
97
|
await this.exec(`git commit -m "chore(release): bump to ${nextVersion}"`);
|
|
107
98
|
await this.exec(`git push --set-upstream origin ${branchName} --no-verify`);
|
|
108
99
|
const [repoOwner, repoName] = repo.package.packageJson.repository.split('/');
|
|
109
|
-
|
|
110
|
-
|
|
100
|
+
const releaseDetails = `
|
|
101
|
+
> **Note**
|
|
102
|
+
> Patches and prereleases often require very specific starting points and changes.
|
|
103
|
+
> These changes cannot always be shipped from \`main\` since it is likely ahead in commits.
|
|
104
|
+
> Because of this the release process is slightly different, they "ship" from the PR itself.
|
|
105
|
+
> Once your PR is ready to be released, add the "release-it" label.`;
|
|
106
|
+
const includeReleaseDetails = isPrerelease || (flags.patch && flags['release-channel'] !== 'nightly');
|
|
111
107
|
const pr = await octokit.request('POST /repos/{owner}/{repo}/pulls', {
|
|
112
108
|
owner: repoOwner,
|
|
113
109
|
repo: repoName,
|
|
114
110
|
head: branchName,
|
|
115
111
|
base: 'main',
|
|
116
|
-
title: `Release PR for ${nextVersion}`,
|
|
117
|
-
body: `Building ${nextVersion}
|
|
112
|
+
title: `Release PR for ${nextVersion} as ${flags['release-channel']}`,
|
|
113
|
+
body: `Building ${nextVersion}\n[skip-validate-pr]\n${includeReleaseDetails ? releaseDetails : ''}`,
|
|
118
114
|
});
|
|
119
115
|
if (flags.label) {
|
|
120
116
|
await octokit.request('POST /repos/{owner}/{repo}/issues/{issue_number}/labels', {
|
|
@@ -187,6 +183,11 @@ build.flags = {
|
|
|
187
183
|
char: 'g',
|
|
188
184
|
exactlyOne: ['start-from-npm-dist-tag', 'start-from-github-ref'],
|
|
189
185
|
}),
|
|
186
|
+
'release-channel': sf_plugins_core_1.Flags.string({
|
|
187
|
+
summary: messages.getMessage('flags.releaseChannel'),
|
|
188
|
+
char: 'c',
|
|
189
|
+
required: true,
|
|
190
|
+
}),
|
|
190
191
|
'build-only': sf_plugins_core_1.Flags.boolean({
|
|
191
192
|
summary: messages.getMessage('flags.buildOnly'),
|
|
192
193
|
default: false,
|
|
@@ -215,19 +216,6 @@ build.flags = {
|
|
|
215
216
|
}),
|
|
216
217
|
patch: sf_plugins_core_1.Flags.boolean({
|
|
217
218
|
summary: messages.getMessage('flags.patch'),
|
|
218
|
-
exclusive: ['prerelease'],
|
|
219
|
-
}),
|
|
220
|
-
prerelease: sf_plugins_core_1.Flags.string({
|
|
221
|
-
summary: messages.getMessage('flags.prerelease'),
|
|
222
|
-
exclusive: ['patch'],
|
|
223
|
-
}),
|
|
224
|
-
snapshot: sf_plugins_core_1.Flags.boolean({
|
|
225
|
-
summary: messages.getMessage('flags.snapshot'),
|
|
226
|
-
deprecated: true,
|
|
227
|
-
}),
|
|
228
|
-
schema: sf_plugins_core_1.Flags.boolean({
|
|
229
|
-
summary: messages.getMessage('flags.schema'),
|
|
230
|
-
deprecated: true,
|
|
231
219
|
}),
|
|
232
220
|
};
|
|
233
221
|
//# sourceMappingURL=build.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../src/commands/cli/release/build.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yCAAsC;AACtC,iDAAgE;AAChE,iEAAyF;AACzF,mDAAoD;AACpD,yCAAsC;AACtC,wCAAwC;AACxC,2CAAqD;AACrD,oDAAkD;AAElD,MAAM,IAAI,GAAG,IAAA,qBAAS,EAAC,oBAAQ,CAAC,CAAC;AAEjC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,uCAAuC,EAAE,mBAAmB,CAAC,CAAC;AAErG,MAAqB,KAAM,SAAQ,2BAAe;
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../src/commands/cli/release/build.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yCAAsC;AACtC,iDAAgE;AAChE,iEAAyF;AACzF,mDAAoD;AACpD,yCAAsC;AACtC,wCAAwC;AACxC,2CAAqD;AACrD,oDAAkD;AAElD,MAAM,IAAI,GAAG,IAAA,qBAAS,EAAC,oBAAQ,CAAC,CAAC;AAEjC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,uCAAuC,EAAE,mBAAmB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uBAAK,CAAC,OAAO,CAAC;QAC1B,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC;QAC/C,OAAO,EAAE,KAAK;KACf,CAAC;IACF,WAAW,EAAE,uBAAK,CAAC,OAAO,CAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;QACjD,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KACd,CAAC;IACF,IAAI,EAAE,IAAA,sCAAoB,EAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;KAC3C,CAAC;IACF,aAAa,EAAE,uBAAK,CAAC,OAAO,CAAC;QAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC;QAChD,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KACd,CAAC;IACF,GAAG,EAAE,uBAAK,CAAC,OAAO,CAAC;QACjB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;QACzC,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KACd,CAAC;IACF,KAAK,EAAE,uBAAK,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QAC3C,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,KAAK,EAAE,uBAAK,CAAC,OAAO,CAAC;QACnB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;KAC5C,CAAC;CACH,CAAC"}
|
|
@@ -14,15 +14,13 @@
|
|
|
14
14
|
"flags": {
|
|
15
15
|
"startFromNpmDistTag": "the npm dist-tag to start the release from, examples: nightly, latest-rc",
|
|
16
16
|
"startFromGithubRef": "a Github ref to start the release from, examples: main, 7.144.0, f476e8e",
|
|
17
|
+
"releaseChannel": "the channel intended for this release, examples: nightly, latest-rc, latest, dev, beta, etc...",
|
|
17
18
|
"resolutions": "bump the versions of packages listed in the resolutions section",
|
|
18
19
|
"pinnedDeps": "bump the versions of the packages listed in the pinnedDependencies section",
|
|
19
20
|
"jit": "bump the versions of the packages listed in the jitPlugins (just-in-time) section",
|
|
20
21
|
"label": "add one or more labels to the Github PR",
|
|
21
22
|
"only": "only bump the version of the packages passed in, uses latest if version is not provided",
|
|
22
23
|
"patch": "bump the release as a patch of an existing version, not a new minor version",
|
|
23
|
-
"
|
|
24
|
-
"buildOnly": "only build the release, do not git add/commit/push",
|
|
25
|
-
"snapshot": "update the snapshots and commit them to the PR",
|
|
26
|
-
"schema": "update the schemas and commit them to the PR"
|
|
24
|
+
"buildOnly": "only build the release, do not git add/commit/push"
|
|
27
25
|
}
|
|
28
26
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.
|
|
2
|
+
"version": "3.15.1",
|
|
3
3
|
"commands": {
|
|
4
4
|
"channel:promote": {
|
|
5
5
|
"id": "channel:promote",
|
|
@@ -664,6 +664,14 @@
|
|
|
664
664
|
"summary": "a Github ref to start the release from, examples: main, 7.144.0, f476e8e",
|
|
665
665
|
"multiple": false
|
|
666
666
|
},
|
|
667
|
+
"release-channel": {
|
|
668
|
+
"name": "release-channel",
|
|
669
|
+
"type": "option",
|
|
670
|
+
"char": "c",
|
|
671
|
+
"summary": "the channel intended for this release, examples: nightly, latest-rc, latest, dev, beta, etc...",
|
|
672
|
+
"required": true,
|
|
673
|
+
"multiple": false
|
|
674
|
+
},
|
|
667
675
|
"build-only": {
|
|
668
676
|
"name": "build-only",
|
|
669
677
|
"type": "boolean",
|
|
@@ -705,33 +713,7 @@
|
|
|
705
713
|
"name": "patch",
|
|
706
714
|
"type": "boolean",
|
|
707
715
|
"summary": "bump the release as a patch of an existing version, not a new minor version",
|
|
708
|
-
"allowNo": false
|
|
709
|
-
"exclusive": [
|
|
710
|
-
"prerelease"
|
|
711
|
-
]
|
|
712
|
-
},
|
|
713
|
-
"prerelease": {
|
|
714
|
-
"name": "prerelease",
|
|
715
|
-
"type": "option",
|
|
716
|
-
"summary": "name of the prerelease to create, examples: dev, alpha",
|
|
717
|
-
"multiple": false,
|
|
718
|
-
"exclusive": [
|
|
719
|
-
"patch"
|
|
720
|
-
]
|
|
721
|
-
},
|
|
722
|
-
"snapshot": {
|
|
723
|
-
"name": "snapshot",
|
|
724
|
-
"type": "boolean",
|
|
725
|
-
"summary": "update the snapshots and commit them to the PR",
|
|
726
|
-
"allowNo": false,
|
|
727
|
-
"deprecated": true
|
|
728
|
-
},
|
|
729
|
-
"schema": {
|
|
730
|
-
"name": "schema",
|
|
731
|
-
"type": "boolean",
|
|
732
|
-
"summary": "update the schemas and commit them to the PR",
|
|
733
|
-
"allowNo": false,
|
|
734
|
-
"deprecated": true
|
|
716
|
+
"allowNo": false
|
|
735
717
|
}
|
|
736
718
|
},
|
|
737
719
|
"args": {}
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-release-management",
|
|
3
3
|
"description": "A plugin for preparing and publishing npm packages",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.15.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"bin": {
|
|
8
8
|
"sf-release": "bin/run"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@oclif/core": "^2.
|
|
12
|
-
"@octokit/core": "^4.
|
|
11
|
+
"@oclif/core": "^2.3.1",
|
|
12
|
+
"@octokit/core": "^4.2.0",
|
|
13
13
|
"@octokit/plugin-paginate-rest": "^6.0.0",
|
|
14
14
|
"@octokit/plugin-throttling": "^5.0.1",
|
|
15
|
-
"@salesforce/core": "^3.
|
|
16
|
-
"@salesforce/kit": "^1.
|
|
15
|
+
"@salesforce/core": "^3.33.5",
|
|
16
|
+
"@salesforce/kit": "^1.9.0",
|
|
17
17
|
"@salesforce/plugin-command-reference": "^2.3.1",
|
|
18
18
|
"@salesforce/plugin-trust": "^2.4.2",
|
|
19
|
-
"@salesforce/sf-plugins-core": "^2.
|
|
19
|
+
"@salesforce/sf-plugins-core": "^2.2.3",
|
|
20
20
|
"@salesforce/ts-types": "^1.7.3",
|
|
21
21
|
"agent-base": "^6.0.2",
|
|
22
22
|
"aws-sdk": "^2.1313.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@oclif/plugin-command-snapshot": "^3.3.6",
|
|
40
40
|
"@salesforce/dev-config": "^3.0.0",
|
|
41
|
-
"@salesforce/dev-scripts": "^
|
|
41
|
+
"@salesforce/dev-scripts": "^4.1.1",
|
|
42
42
|
"@salesforce/prettier-config": "^0.0.2",
|
|
43
43
|
"@salesforce/ts-sinon": "1.4.6",
|
|
44
44
|
"@swc/core": "^1.3.32",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"husky": "^7.0.4",
|
|
63
63
|
"mocha": "^9.1.3",
|
|
64
64
|
"nyc": "^15.1.0",
|
|
65
|
-
"oclif": "^3.
|
|
65
|
+
"oclif": "^3.7.0",
|
|
66
66
|
"prettier": "^2.8.1",
|
|
67
67
|
"pretty-quick": "^3.1.0",
|
|
68
68
|
"shx": "0.3.4",
|
|
69
69
|
"sinon": "10.0.0",
|
|
70
70
|
"ts-node": "^10.0.0",
|
|
71
71
|
"typescript": "^4.9.4",
|
|
72
|
-
"wireit": "^0.9.
|
|
72
|
+
"wireit": "^0.9.5"
|
|
73
73
|
},
|
|
74
74
|
"config": {},
|
|
75
75
|
"engines": {
|
|
@@ -164,24 +164,19 @@
|
|
|
164
164
|
},
|
|
165
165
|
"repository": "salesforcecli/plugin-release-management",
|
|
166
166
|
"scripts": {
|
|
167
|
-
"build": "
|
|
167
|
+
"build": "wireit",
|
|
168
168
|
"clean": "sf-clean",
|
|
169
169
|
"clean-all": "sf-clean all",
|
|
170
170
|
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
171
|
-
"compile": "
|
|
171
|
+
"compile": "wireit",
|
|
172
172
|
"docs": "sf-docs",
|
|
173
|
-
"format": "
|
|
174
|
-
"lint": "
|
|
173
|
+
"format": "wireit",
|
|
174
|
+
"lint": "wireit",
|
|
175
175
|
"oclif-artifacts": "oclif manifest",
|
|
176
176
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
177
177
|
"prepack": "sf-prepack",
|
|
178
178
|
"prepare": "sf-install",
|
|
179
|
-
"
|
|
180
|
-
"test": "sf-test",
|
|
181
|
-
"test:command-reference": "wireit",
|
|
182
|
-
"test:compile": "wireit",
|
|
183
|
-
"test:deprecation-policy": "wireit",
|
|
184
|
-
"test:json-schema": "wireit",
|
|
179
|
+
"test": "wireit",
|
|
185
180
|
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
186
181
|
"test:only": "wireit",
|
|
187
182
|
"version": "oclif readme"
|
|
@@ -210,7 +205,15 @@
|
|
|
210
205
|
"clean": "if-file-deleted"
|
|
211
206
|
},
|
|
212
207
|
"format": {
|
|
213
|
-
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\""
|
|
208
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
209
|
+
"files": [
|
|
210
|
+
"src/**/*.ts",
|
|
211
|
+
"test/**/*.ts",
|
|
212
|
+
"schemas/**/*.json",
|
|
213
|
+
"command-snapshot.json",
|
|
214
|
+
".prettier*"
|
|
215
|
+
],
|
|
216
|
+
"output": []
|
|
214
217
|
},
|
|
215
218
|
"lint": {
|
|
216
219
|
"command": "eslint src test --color --cache --cache-location .eslintcache",
|
|
@@ -218,8 +221,7 @@
|
|
|
218
221
|
"src/**/*.ts",
|
|
219
222
|
"test/**/*.ts",
|
|
220
223
|
"messages/**",
|
|
221
|
-
".
|
|
222
|
-
".eslintrc.js"
|
|
224
|
+
".eslint*"
|
|
223
225
|
],
|
|
224
226
|
"output": []
|
|
225
227
|
},
|
|
@@ -248,7 +250,10 @@
|
|
|
248
250
|
"test/**/*.ts",
|
|
249
251
|
"src/**/*.ts",
|
|
250
252
|
"tsconfig.json",
|
|
251
|
-
"
|
|
253
|
+
".mocha*",
|
|
254
|
+
"test/tsconfig.json",
|
|
255
|
+
"!*.nut.ts",
|
|
256
|
+
".nycrc"
|
|
252
257
|
],
|
|
253
258
|
"output": []
|
|
254
259
|
},
|
|
@@ -256,7 +261,8 @@
|
|
|
256
261
|
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
|
|
257
262
|
"files": [
|
|
258
263
|
"src/**/*.ts",
|
|
259
|
-
"messages/**"
|
|
264
|
+
"messages/**",
|
|
265
|
+
"package.json"
|
|
260
266
|
],
|
|
261
267
|
"output": [
|
|
262
268
|
"tmp/root"
|
|
@@ -282,7 +288,7 @@
|
|
|
282
288
|
}
|
|
283
289
|
},
|
|
284
290
|
"sfdx": {
|
|
285
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/3.
|
|
286
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/3.
|
|
291
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/3.15.1.crt",
|
|
292
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/3.15.1.sig"
|
|
287
293
|
}
|
|
288
294
|
}
|