sfdx-git-delta 5.1.2 → 5.2.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 +15 -0
- package/README.md +19 -2
- package/lib/locales/en.d.ts +7 -0
- package/lib/locales/en.js +11 -0
- package/lib/locales/en.js.map +1 -0
- package/lib/service/standardHandler.d.ts +1 -0
- package/lib/service/standardHandler.js +2 -1
- package/lib/service/standardHandler.js.map +1 -1
- package/lib/service/waveHandler.d.ts +0 -1
- package/lib/service/waveHandler.js +0 -2
- package/lib/service/waveHandler.js.map +1 -1
- package/lib/utils/cliHelper.js +13 -16
- package/lib/utils/cliHelper.js.map +1 -1
- package/lib/utils/repoSetup.d.ts +1 -0
- package/lib/utils/repoSetup.js +6 -0
- package/lib/utils/repoSetup.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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
|
+
## [5.2.0](https://github.com/scolladon/sfdx-git-delta/compare/v5.1.2...v5.2.0) (2022-04-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add github action linter ([#288](https://github.com/scolladon/sfdx-git-delta/issues/288)) ([9a038db](https://github.com/scolladon/sfdx-git-delta/commit/9a038db6fd7d22ab8b3ff6504018da75022272e6))
|
|
11
|
+
* prepare i18n ([#287](https://github.com/scolladon/sfdx-git-delta/issues/287)) ([001c07e](https://github.com/scolladon/sfdx-git-delta/commit/001c07e736584d34d75dc09005b3d701ddb33639))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* fix typo ([#292](https://github.com/scolladon/sfdx-git-delta/issues/292)) ([0f35071](https://github.com/scolladon/sfdx-git-delta/commit/0f35071db77df9c3c6fa0390aaea69000b7e680a))
|
|
17
|
+
* link "Condition deployment" on TOC ([#291](https://github.com/scolladon/sfdx-git-delta/issues/291)) ([051c35a](https://github.com/scolladon/sfdx-git-delta/commit/051c35a927da3426cb51c0044b8497e229d7930a))
|
|
18
|
+
* wave meta file delta generation ([#293](https://github.com/scolladon/sfdx-git-delta/issues/293)) ([ceaff65](https://github.com/scolladon/sfdx-git-delta/commit/ceaff65033a7b77b8e7939f914e0d311533188e7))
|
|
19
|
+
|
|
5
20
|
### [5.1.2](https://github.com/scolladon/sfdx-git-delta/compare/v5.1.1...v5.1.2) (2022-04-04)
|
|
6
21
|
|
|
7
22
|
|
package/README.md
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
- [Explicitly including specific files for inclusion or destruction regardless of diff:](#explicitly-including-specific-files-for-inclusion-or-destruction-regardless-of-diff)
|
|
45
45
|
- [Scoping delta generation to a specific folder](#scoping-delta-generation-to-a-specific-folder)
|
|
46
46
|
- [Generate a comma-separated list of the added and modified Apex classes:](#generate-a-comma-separated-list-of-the-added-and-modified-apex-classes)
|
|
47
|
+
- [Condition deployment on package.xml and destructiveChange content](#condition-deployment-on-packagexml-and-destructivechange-content)
|
|
47
48
|
- [Use the module in your own node application](#use-the-module-in-your-own-node-application)
|
|
48
49
|
- [Changelog](#changelog)
|
|
49
50
|
- [Built With](#built-with)
|
|
@@ -83,7 +84,7 @@ Have a look at this post on the Salesforce Developers Blog to dive into it: [Opt
|
|
|
83
84
|
|
|
84
85
|
If you are not a Salesforce Architect or Developer, probably not, _sorry_.
|
|
85
86
|
|
|
86
|
-
If you are a Technical Architect or Developer, then it’s a very useful tool for you, when
|
|
87
|
+
If you are a Technical Architect or Developer, then it’s a very useful tool for you, when meeting the 3 conditions below:
|
|
87
88
|
|
|
88
89
|
1. Your Salesforce project uses a git repo as the source of truth.
|
|
89
90
|
2. You use the Source (DX) format in the repo.
|
|
@@ -182,7 +183,7 @@ OPTIONS
|
|
|
182
183
|
this command invocation
|
|
183
184
|
```
|
|
184
185
|
|
|
185
|
-
_See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.
|
|
186
|
+
_See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.2.0/src/commands/sgd/source/delta.ts)_
|
|
186
187
|
<!-- commandsstop -->
|
|
187
188
|
|
|
188
189
|
### Windows users
|
|
@@ -434,6 +435,22 @@ To cover this need, parse the content of the package.xml file produced by SGD us
|
|
|
434
435
|
|
|
435
436
|
`xq . < package/package.xml | jq '.Package.types | [.] | flatten | map(select(.name=="ApexClass")) | .[] | .members | [.] | flatten | map(select(. | index("*") | not)) | unique | join(",")'`
|
|
436
437
|
|
|
438
|
+
### Condition deployment on package.xml and destructiveChange content
|
|
439
|
+
|
|
440
|
+
SGD does not always generate content in the package.xml (or destructiveChanges.xml). Sometimes the commit range contains changes only within files to ignore (using .sgdignore and `--i` parameter).
|
|
441
|
+
[Deploying empty package.xml can lead to deployment errors.](https://github.com/scolladon/sfdx-git-delta/issues/249)
|
|
442
|
+
To avoid starting a failing deployment, test files content before execution:
|
|
443
|
+
|
|
444
|
+
```sh
|
|
445
|
+
# run deploy command only if the generated package contains metadata
|
|
446
|
+
if grep -q '<types>' ./package/package.xml ; then
|
|
447
|
+
echo "---- Deploying added and modified metadata ----"
|
|
448
|
+
sfdx force:source:deploy -x package/package.xml
|
|
449
|
+
else
|
|
450
|
+
echo "---- No changes to deploy ----"
|
|
451
|
+
fi
|
|
452
|
+
```
|
|
453
|
+
|
|
437
454
|
### Use the module in your own node application
|
|
438
455
|
|
|
439
456
|
If you want to embed sgd in your node application, install it has a dependency for your application
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const errorGitSHAisBlank: string;
|
|
2
|
+
export const errorParameterIsNotGitSHA: string;
|
|
3
|
+
export const errorAPIVersionIsNan: string;
|
|
4
|
+
export const errorPathIsNotDir: string;
|
|
5
|
+
export const errorPathIsNotFile: string;
|
|
6
|
+
export const errorPathIsNotGit: string;
|
|
7
|
+
export const errorToNotHeadWithDeltaGenerate: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = {
|
|
3
|
+
errorGitSHAisBlank: '--%s is blank: "%s"',
|
|
4
|
+
errorParameterIsNotGitSHA: '--%s is not a valid sha pointer: "%s"',
|
|
5
|
+
errorAPIVersionIsNan: 'api-version %s is not a number',
|
|
6
|
+
errorPathIsNotDir: '%s folder does not exist',
|
|
7
|
+
errorPathIsNotFile: '%s file does not exist',
|
|
8
|
+
errorPathIsNotGit: '%s is not a git repository',
|
|
9
|
+
errorToNotHeadWithDeltaGenerate: '--generate-delta (-d) parameter cannot be used when --to (-t) parameter is not equivalent to HEAD',
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=en.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,kBAAkB,EAAE,qBAAqB;IACzC,yBAAyB,EAAE,uCAAuC;IAClE,oBAAoB,EAAE,gCAAgC;IACtD,iBAAiB,EAAE,0BAA0B;IAC7C,kBAAkB,EAAE,wBAAwB;IAC5C,iBAAiB,EAAE,4BAA4B;IAC/C,+BAA+B,EAC7B,mGAAmG;CACtG,CAAA"}
|
|
@@ -34,6 +34,7 @@ class StandardHandler {
|
|
|
34
34
|
[DELETION]: this.handleDeletion,
|
|
35
35
|
[MODIFICATION]: this.handleModification,
|
|
36
36
|
};
|
|
37
|
+
this.ext = parse(this.line).ext.substring(1);
|
|
37
38
|
}
|
|
38
39
|
async handle() {
|
|
39
40
|
if (this.handlerMap[this.changeType]) {
|
|
@@ -93,7 +94,7 @@ class StandardHandler {
|
|
|
93
94
|
}
|
|
94
95
|
_getMetaTypeFilePath(path) {
|
|
95
96
|
const parsedPath = parse(path);
|
|
96
|
-
return join(parsedPath.dir, `${parsedPath.name}.${
|
|
97
|
+
return join(parsedPath.dir, `${parsedPath.name}.${this.ext}${METAFILE_SUFFIX}`);
|
|
97
98
|
}
|
|
98
99
|
async _copyFiles(src, dst) {
|
|
99
100
|
if (copiedFiles.has(src))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standardHandler.js","sourceRoot":"","sources":["../../src/service/standardHandler.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAA;AACrD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5C,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;AAC1D,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,YAAY,EACZ,aAAa,GACd,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;AACpC,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAA;AAE7E,MAAM,uBAAuB,GAAG,GAAG,CAAA;AAEnC,MAAM,gBAAgB,GAAG,8CAA8C,CAAA;AAEvE,MAAM,mBAAmB,GAAG;IAC1B,SAAS,EAAE,IAAI;IACf,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,IAAI;IACjB,kBAAkB,EAAE,KAAK;CAC1B,CAAA;AAED,MAAM,WAAW,GAAG,IAAI,GAAG,EAAE,CAAA;AAE7B,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAA;AAElE,MAAM,eAAe;IAGnB,YAAY,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ;;QACpC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AAChC,MAAM,CAAC,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
const StandardHandler = require('./standardHandler');
|
|
3
|
-
const { parse } = require('path');
|
|
4
3
|
const WAVE_SUBTYPE = new Map();
|
|
5
4
|
class WaveHandler extends StandardHandler {
|
|
6
5
|
constructor(line, type, work, metadata) {
|
|
@@ -8,7 +7,6 @@ class WaveHandler extends StandardHandler {
|
|
|
8
7
|
StandardHandler.metadata
|
|
9
8
|
.get(this.type)
|
|
10
9
|
.content.reduce((acc, val) => acc.set(val.suffix, val.xmlName), WAVE_SUBTYPE);
|
|
11
|
-
this.ext = parse(this.line).ext.substring(1);
|
|
12
10
|
this.suffixRegex = new RegExp(`\\.${this.ext}$`);
|
|
13
11
|
}
|
|
14
12
|
_fillPackage(packageObject) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waveHandler.js","sourceRoot":"","sources":["../../src/service/waveHandler.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,MAAM,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"waveHandler.js","sourceRoot":"","sources":["../../src/service/waveHandler.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,MAAM,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAEpD,MAAM,YAAY,GAAG,IAAI,GAAG,EAAE,CAAA;AAE9B,MAAM,WAAY,SAAQ,eAAe;IACvC,YAAY,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ;QACpC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;QAEjC,eAAe,CAAC,QAAQ;aACrB,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;aACd,OAAO,CAAC,MAAM,CACb,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,EAC9C,YAAY,CACb,CAAA;QACH,IAAI,CAAC,WAAW,GAAG,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,GAAG,CAAC,CAAA;IAClD,CAAC;IAED,YAAY,CAAC,aAAa;QACxB,MAAM,IAAI,GAAG,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACvC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAC5B,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,EAAE,CAAC,CAAA;SACnC;QACD,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAA;IACrD,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"}
|
package/lib/utils/cliHelper.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
const asyncFilter = require('./asyncFilter');
|
|
3
|
+
const messages = require('../locales/en');
|
|
3
4
|
const RepoSetup = require('./repoSetup');
|
|
4
|
-
const { sanitizePath
|
|
5
|
+
const { sanitizePath } = require('./childProcessUtils');
|
|
5
6
|
const { GIT_FOLDER, POINTER_REF_TYPES } = require('./gitConstants');
|
|
6
|
-
const {
|
|
7
|
+
const { format } = require('util');
|
|
7
8
|
const { stat } = require('fs').promises;
|
|
8
9
|
const { join } = require('path');
|
|
9
10
|
const fsExists = async (dir, fn) => {
|
|
@@ -20,8 +21,8 @@ const fileExists = async (file) => await fsExists(file, 'isFile');
|
|
|
20
21
|
const isGit = async (dir) => {
|
|
21
22
|
return await dirExists(join(dir, GIT_FOLDER));
|
|
22
23
|
};
|
|
23
|
-
const commitCheckParams = ['cat-file', '-t'];
|
|
24
24
|
const isBlank = str => !str || /^\s*$/.test(str);
|
|
25
|
+
const GIT_SHA_PARAMETERS = ['to', 'from'];
|
|
25
26
|
class CLIHelper {
|
|
26
27
|
constructor(config) {
|
|
27
28
|
this.config = config;
|
|
@@ -29,15 +30,11 @@ class CLIHelper {
|
|
|
29
30
|
}
|
|
30
31
|
async _validateGitSha() {
|
|
31
32
|
const errors = [];
|
|
32
|
-
await Promise.all([
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
.map(async (field) => {
|
|
36
|
-
const refType = await getStreamContent(spawn('git', [...commitCheckParams, this.config[field]], {
|
|
37
|
-
cwd: this.config.repo,
|
|
38
|
-
}));
|
|
33
|
+
await Promise.all(GIT_SHA_PARAMETERS.filter(field => !isBlank(this.config[field]) ||
|
|
34
|
+
!errors.push(format(messages.errorGitSHAisBlank, field, this.config[field]))).map(async (field) => {
|
|
35
|
+
const refType = await this.repoSetup.getCommitRefType(this.config[field]);
|
|
39
36
|
if (!POINTER_REF_TYPES.includes(refType === null || refType === void 0 ? void 0 : refType.replace(/\s/g, ''))) {
|
|
40
|
-
errors.push(
|
|
37
|
+
errors.push(format(messages.errorParameterIsNotGitSHA, field, this.config[field]));
|
|
41
38
|
}
|
|
42
39
|
}));
|
|
43
40
|
return errors;
|
|
@@ -46,25 +43,25 @@ class CLIHelper {
|
|
|
46
43
|
this._sanitizeConfig();
|
|
47
44
|
const errors = [];
|
|
48
45
|
if (isNaN(this.config.apiVersion)) {
|
|
49
|
-
errors.push(
|
|
46
|
+
errors.push(format(messages.errorAPIVersionIsNan, this.config.apiVersion));
|
|
50
47
|
}
|
|
51
48
|
const isGitPromise = isGit(this.config.repo);
|
|
52
49
|
const isToEqualHeadPromise = this.repoSetup.isToEqualHead();
|
|
53
50
|
const directoriesPromise = this._filterDirectories();
|
|
54
51
|
const filesPromise = this._filterFiles();
|
|
55
52
|
const directories = await directoriesPromise;
|
|
56
|
-
directories.forEach(dir => errors.push(
|
|
53
|
+
directories.forEach(dir => errors.push(format(messages.errorPathIsNotDir, dir)));
|
|
57
54
|
const files = await filesPromise;
|
|
58
|
-
files.forEach(file => errors.push(
|
|
55
|
+
files.forEach(file => errors.push(format(messages.errorPathIsNotFile, file)));
|
|
59
56
|
const isGitRepo = await isGitPromise;
|
|
60
57
|
if (!isGitRepo) {
|
|
61
|
-
errors.push(
|
|
58
|
+
errors.push(format(messages.errorPathIsNotGit, this.config.repo));
|
|
62
59
|
}
|
|
63
60
|
const gitErrors = await this._validateGitSha();
|
|
64
61
|
errors.push(...gitErrors);
|
|
65
62
|
const isToEqualHead = await isToEqualHeadPromise;
|
|
66
63
|
if (!isToEqualHead && this.config.generateDelta) {
|
|
67
|
-
errors.push(
|
|
64
|
+
errors.push(messages.errorToNotHeadWithDeltaGenerate);
|
|
68
65
|
}
|
|
69
66
|
if (errors.length > 0) {
|
|
70
67
|
throw new Error(errors.join(', '));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cliHelper.js","sourceRoot":"","sources":["../../src/utils/cliHelper.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,MAAM,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AAC5C,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;AACxC,MAAM,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"cliHelper.js","sourceRoot":"","sources":["../../src/utils/cliHelper.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,MAAM,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AAC5C,MAAM,QAAQ,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AACzC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;AACxC,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;AACvD,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA;AACnE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,C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AM,CAAC,OAAO,CAAC,CAAA;QACvD,IAAI,CAAC,MAAM,CAAC,kBAAkB,GAAG,YAAY,CAC3C,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAC/B,CAAA;IACH,CAAC;;AAEM,0BAAgB,GAAG,MAAM,CAAA;AACzB,8BAAoB,GAAG,UAAU,CAAA;AACjC,8BAAoB,GAAG,GAAG,CAAA;AAC1B,4BAAkB,GAAG,GAAG,CAAA;AACxB,8BAAoB,GAAG,GAAG,CAAA;AAEnC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAA"}
|
package/lib/utils/repoSetup.d.ts
CHANGED
package/lib/utils/repoSetup.js
CHANGED
|
@@ -3,6 +3,7 @@ const { getStreamContent } = require('./childProcessUtils');
|
|
|
3
3
|
const { spawn } = require('child_process');
|
|
4
4
|
const HEAD = 'HEAD';
|
|
5
5
|
const revparseParams = ['rev-parse'];
|
|
6
|
+
const commitCheckParams = ['cat-file', '-t'];
|
|
6
7
|
const gitConfig = ['config', 'core.quotepath', 'off'];
|
|
7
8
|
class RepoSetup {
|
|
8
9
|
constructor(config) {
|
|
@@ -22,6 +23,11 @@ class RepoSetup {
|
|
|
22
23
|
async repoConfiguration() {
|
|
23
24
|
await getStreamContent(spawn('git', gitConfig, this.spawnConfig));
|
|
24
25
|
}
|
|
26
|
+
async getCommitRefType(commitRef) {
|
|
27
|
+
return await getStreamContent(spawn('git', [...commitCheckParams, commitRef], {
|
|
28
|
+
cwd: this.config.repo,
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
25
31
|
}
|
|
26
32
|
module.exports = RepoSetup;
|
|
27
33
|
//# sourceMappingURL=repoSetup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repoSetup.js","sourceRoot":"","sources":["../../src/utils/repoSetup.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;AAC3D,MAAM,EAAE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EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;SACtB,CAAC,CACH,CAAA;IACH,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,SAAS,CAAA"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"5.
|
|
1
|
+
{"version":"5.2.0","commands":{"sgd:source:delta":{"id":"sgd:source:delta","description":"Generate the sfdx content in source format and destructive change from two git commits","usage":"<%= command.id %> -f <string> [-t <string>] [-r <filepath>] [-i <filepath>] [-D <filepath>] [-s <filepath>] [-W] [-o <filepath>] [-a <number>] [-d] [-n <filepath>] [-N <filepath>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"sfdx-git-delta","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"to":{"name":"to","type":"option","char":"t","description":"commit sha to where the diff is done","default":"HEAD"},"from":{"name":"from","type":"option","char":"f","description":"commit sha from where the diff is done [git rev-list --max-parents=0 HEAD]","required":true},"repo":{"name":"repo","type":"option","char":"r","description":"git repository location","default":"."},"ignore":{"name":"ignore","type":"option","char":"i","description":"file listing paths to explicitly ignore for any diff actions"},"ignore-destructive":{"name":"ignore-destructive","type":"option","char":"D","description":"file listing paths to explicitly ignore for any destructive actions"},"source":{"name":"source","type":"option","char":"s","description":"source folder focus location related to --repo","default":"."},"ignore-whitespace":{"name":"ignore-whitespace","type":"boolean","char":"W","description":"ignore git diff whitespace (space, tab, eol) changes","allowNo":false},"output":{"name":"output","type":"option","char":"o","description":"source package specific output","default":"./output"},"api-version":{"name":"api-version","type":"option","char":"a","description":"salesforce API version","default":54},"generate-delta":{"name":"generate-delta","type":"boolean","char":"d","description":"generate delta files in [--output] folder","allowNo":false},"include":{"name":"include","type":"option","char":"n","description":"file listing paths to explicitly include for any diff actions"},"include-destructive":{"name":"include-destructive","type":"option","char":"N","description":"file listing paths to explicitly include for any destructive actions"}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfdx-git-delta",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Generate the sfdx content in source format and destructive change from two git commits",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"salesforce",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"eslint-config-prettier": "^8.3.0",
|
|
82
82
|
"eslint-config-salesforce-typescript": "^0.2.8",
|
|
83
83
|
"eslint-plugin-import": "^2.24.2",
|
|
84
|
-
"eslint-plugin-jsdoc": "^
|
|
84
|
+
"eslint-plugin-jsdoc": "^39.2.7",
|
|
85
85
|
"eslint-plugin-prettier": "^4.0.0",
|
|
86
86
|
"husky": "^7.0.2",
|
|
87
87
|
"jest": "^27.2.5",
|