sfdx-git-delta 5.31.1 → 5.32.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 +14 -0
- package/README.md +1 -1
- package/lib/locales/en.js +1 -1
- package/lib/locales/en.js.map +1 -1
- package/lib/metadata/v54.json +7 -0
- package/lib/metadata/v55.json +7 -0
- package/lib/metadata/v56.json +7 -0
- package/lib/metadata/v57.json +7 -0
- package/lib/metadata/v58.json +7 -0
- package/lib/metadata/v59.json +7 -0
- package/lib/post-processor/flowTranslationProcessor.js +4 -3
- package/lib/post-processor/flowTranslationProcessor.js.map +1 -1
- package/lib/service/inResourceHandler.js +2 -3
- package/lib/service/inResourceHandler.js.map +1 -1
- package/lib/utils/cliHelper.js +5 -4
- package/lib/utils/cliHelper.js.map +1 -1
- package/lib/utils/fsHelper.d.ts +1 -5
- package/lib/utils/fsHelper.js +21 -42
- package/lib/utils/fsHelper.js.map +1 -1
- package/lib/utils/fsUtils.d.ts +5 -0
- package/lib/utils/fsUtils.js +40 -0
- package/lib/utils/fsUtils.js.map +1 -0
- package/lib/utils/ignoreHelper.js +3 -6
- package/lib/utils/ignoreHelper.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
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.
|
|
6
6
|
|
|
7
|
+
## [5.32.0](https://github.com/scolladon/sfdx-git-delta/compare/v5.31.1...v5.32.0) (2024-01-09)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* add `RecordAlertCategory` metadata support ([#752](https://github.com/scolladon/sfdx-git-delta/issues/752)) ([3ba47cc](https://github.com/scolladon/sfdx-git-delta/commit/3ba47ccb2c631875a19d48bd78adcf5d501429f2))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* add fetch depth tips for git sha pointer error ([#748](https://github.com/scolladon/sfdx-git-delta/issues/748)) ([1753f97](https://github.com/scolladon/sfdx-git-delta/commit/1753f97fda048000690ca658d133cc58494fefcb))
|
|
18
|
+
* apply ignore settings when copying file ([#745](https://github.com/scolladon/sfdx-git-delta/issues/745)) ([d6f99d3](https://github.com/scolladon/sfdx-git-delta/commit/d6f99d3c8c15de8a8844d9dcab964cffab929312))
|
|
19
|
+
* circular dependency issues ([#749](https://github.com/scolladon/sfdx-git-delta/issues/749)) ([30ed6d2](https://github.com/scolladon/sfdx-git-delta/commit/30ed6d28e96c1f67ce5ec868391a581534dc5cb6))
|
|
20
|
+
|
|
7
21
|
## [5.31.1](https://github.com/scolladon/sfdx-git-delta/compare/v5.31.0...v5.31.1) (2023-12-12)
|
|
8
22
|
|
|
9
23
|
|
package/README.md
CHANGED
|
@@ -188,7 +188,7 @@ OPTIONS
|
|
|
188
188
|
this command invocation
|
|
189
189
|
```
|
|
190
190
|
|
|
191
|
-
_See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.
|
|
191
|
+
_See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.32.0/src/commands/sgd/source/delta.ts)_
|
|
192
192
|
<!-- commandsstop -->
|
|
193
193
|
|
|
194
194
|
### Windows users
|
package/lib/locales/en.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const message = {
|
|
4
4
|
errorGitSHAisBlank: `--%s is blank: '%s'`,
|
|
5
|
-
errorParameterIsNotGitSHA: `--%s is not a valid sha pointer: '%s'`,
|
|
5
|
+
errorParameterIsNotGitSHA: `--%s is not a valid sha pointer: '%s' (If in CI/CD context, check the fetch depth is properly set)`,
|
|
6
6
|
errorPathIsNotDir: `'%s' folder does not exist`,
|
|
7
7
|
errorPathIsNotFile: `'%s' file does not exist`,
|
|
8
8
|
errorPathIsNotGit: `'%s' is not a git repository`,
|
package/lib/locales/en.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":";;AAAA,MAAM,OAAO,GAAG;IACd,kBAAkB,EAAE,qBAAqB;IACzC,yBAAyB,EAAE,
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":";;AAAA,MAAM,OAAO,GAAG;IACd,kBAAkB,EAAE,qBAAqB;IACzC,yBAAyB,EAAE,oGAAoG;IAC/H,iBAAiB,EAAE,4BAA4B;IAC/C,kBAAkB,EAAE,0BAA0B;IAC9C,iBAAiB,EAAE,8BAA8B;IACjD,6BAA6B,EAAE,4DAA4D;CAC5F,CAAA;AAED,kBAAe,OAAO,CAAA"}
|
package/lib/metadata/v54.json
CHANGED
package/lib/metadata/v55.json
CHANGED
package/lib/metadata/v56.json
CHANGED
package/lib/metadata/v57.json
CHANGED
package/lib/metadata/v58.json
CHANGED
package/lib/metadata/v59.json
CHANGED
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const baseProcessor_1 = tslib_1.__importDefault(require("./baseProcessor"));
|
|
6
6
|
const metadataConstants_1 = require("../utils/metadataConstants");
|
|
7
7
|
const fsHelper_1 = require("../utils/fsHelper");
|
|
8
|
+
const fsUtils_1 = require("../utils/fsUtils");
|
|
8
9
|
const fs_extra_1 = require("fs-extra");
|
|
9
10
|
const path_1 = require("path");
|
|
10
11
|
const ignoreHelper_1 = require("../utils/ignoreHelper");
|
|
@@ -36,8 +37,8 @@ class FlowTranslationProcessor extends baseProcessor_1.default {
|
|
|
36
37
|
const translationsIterator = await (0, fsHelper_1.scanExtension)(this.config.source, EXTENSION, this.work.config);
|
|
37
38
|
const ignoreHelper = await (0, ignoreHelper_1.buildIgnoreHelper)(this.config);
|
|
38
39
|
for (const translationPath of translationsIterator) {
|
|
39
|
-
if (!ignoreHelper
|
|
40
|
-
!(0,
|
|
40
|
+
if (!ignoreHelper.globalIgnore.ignores(translationPath) &&
|
|
41
|
+
!(0, fsUtils_1.isSubDir)(this.config.output, translationPath)) {
|
|
41
42
|
await this._parseTranslationFile(translationPath);
|
|
42
43
|
}
|
|
43
44
|
}
|
|
@@ -85,7 +86,7 @@ class FlowTranslationProcessor extends baseProcessor_1.default {
|
|
|
85
86
|
const translationExist = await (0, fs_extra_1.pathExists)(translationPathInOutputFolder);
|
|
86
87
|
let jsonTranslation = getDefaultTranslation();
|
|
87
88
|
if (translationExist) {
|
|
88
|
-
const xmlTranslation = await (0,
|
|
89
|
+
const xmlTranslation = await (0, fsUtils_1.readFile)(translationPathInOutputFolder);
|
|
89
90
|
jsonTranslation = (0, fxpHelper_1.xml2Json)(xmlTranslation);
|
|
90
91
|
}
|
|
91
92
|
return jsonTranslation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowTranslationProcessor.js","sourceRoot":"","sources":["../../src/post-processor/flowTranslationProcessor.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,YAAY,CAAA;;;AACZ,4EAA2C;AAC3C,kEAMmC;AACnC,
|
|
1
|
+
{"version":3,"file":"flowTranslationProcessor.js","sourceRoot":"","sources":["../../src/post-processor/flowTranslationProcessor.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,YAAY,CAAA;;;AACZ,4EAA2C;AAC3C,kEAMmC;AACnC,gDAA4D;AAC5D,8CAAqD;AACrD,uCAAqC;AACrC,+BAAkC;AAClC,wDAAyD;AACzD,kDAK2B;AAC3B,0DAAiE;AACjE,kEAAyD;AAIzD,MAAM,SAAS,GAAG,GAAG,yCAAqB,GAAG,mCAAe,EAAE,CAAA;AAE9D,MAAM,kBAAkB,GAAG,CAAC,eAAuB,EAAE,EAAE,CACrD,IAAA,YAAK,EAAC,eAAe,CAAC,OAAO,CAAC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C,6BAA6B,CAAC,CAAA;YACpE,eAAe,GAAG,IAAA,oBAAQ,EAAC,cAAc,CAAC,CAAA;QAC5C,CAAC;QAED,OAAO,eAAe,CAAA;IACxB,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAa,CAAC,CAAA;IACnD,CAAC;CACF;AA9HD,2CA8HC"}
|
|
@@ -6,7 +6,6 @@ const path_1 = require("path");
|
|
|
6
6
|
const fsHelper_1 = require("../utils/fsHelper");
|
|
7
7
|
const metadataConstants_1 = require("../utils/metadataConstants");
|
|
8
8
|
const packageHelper_1 = require("../utils/packageHelper");
|
|
9
|
-
const fsHelper_2 = require("../utils/fsHelper");
|
|
10
9
|
class ResourceHandler extends standardHandler_1.default {
|
|
11
10
|
constructor(line, type, work, metadata) {
|
|
12
11
|
super(line, type, work, metadata);
|
|
@@ -50,11 +49,11 @@ class ResourceHandler extends standardHandler_1.default {
|
|
|
50
49
|
}
|
|
51
50
|
resourcePath.push(pathElement);
|
|
52
51
|
}
|
|
53
|
-
const lastPathElement = resourcePath[resourcePath.length - 1].split(
|
|
52
|
+
const lastPathElement = resourcePath[resourcePath.length - 1].split(fsHelper_1.DOT);
|
|
54
53
|
if (lastPathElement.length > 1) {
|
|
55
54
|
lastPathElement.pop();
|
|
56
55
|
}
|
|
57
|
-
resourcePath[resourcePath.length - 1] = lastPathElement.join(
|
|
56
|
+
resourcePath[resourcePath.length - 1] = lastPathElement.join(fsHelper_1.DOT);
|
|
58
57
|
return `${resourcePath.join(path_1.sep)}`;
|
|
59
58
|
}
|
|
60
59
|
_getMetaTypeFilePath() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inResourceHandler.js","sourceRoot":"","sources":["../../src/service/inResourceHandler.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;AACZ,gFAA+C;AAC/C,+BAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"inResource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./gitConstants");
|
|
|
10
10
|
const metadataManager_1 = require("../metadata/metadataManager");
|
|
11
11
|
const util_1 = require("util");
|
|
12
12
|
const fsHelper_1 = require("./fsHelper");
|
|
13
|
+
const fsUtils_1 = require("./fsUtils");
|
|
13
14
|
const path_1 = require("path");
|
|
14
15
|
const isBlank = (str) => !str || /^\s*$/.test(str);
|
|
15
16
|
const GIT_SHA_PARAMETERS = ['to', 'from'];
|
|
@@ -63,7 +64,7 @@ class CLIHelper {
|
|
|
63
64
|
}
|
|
64
65
|
_filterDirectories() {
|
|
65
66
|
return (0, asyncFilter_1.default)([this.config.output, (0, path_1.join)(this.config.repo, this.config.source)].filter(Boolean), async (dir) => {
|
|
66
|
-
const exist = await (0,
|
|
67
|
+
const exist = await (0, fsUtils_1.dirExists)(dir);
|
|
67
68
|
return !exist;
|
|
68
69
|
});
|
|
69
70
|
}
|
|
@@ -74,7 +75,7 @@ class CLIHelper {
|
|
|
74
75
|
this.config.include,
|
|
75
76
|
this.config.includeDestructive,
|
|
76
77
|
].filter(Boolean), async (file) => {
|
|
77
|
-
const exist = await (0,
|
|
78
|
+
const exist = await (0, fsUtils_1.fileExists)(file);
|
|
78
79
|
return !exist;
|
|
79
80
|
});
|
|
80
81
|
}
|
|
@@ -86,9 +87,9 @@ class CLIHelper {
|
|
|
86
87
|
const isInputVersionSupported = await (0, metadataManager_1.isVersionSupported)(this.config.apiVersion);
|
|
87
88
|
if (!isInputVersionSupported) {
|
|
88
89
|
const sfdxProjectPath = (0, path_1.join)(this.config.repo, SFDX_PROJECT_FILE_NAME);
|
|
89
|
-
const exists = await (0,
|
|
90
|
+
const exists = await (0, fsUtils_1.fileExists)(sfdxProjectPath);
|
|
90
91
|
if (exists) {
|
|
91
|
-
const sfdxProjectRaw = await (0,
|
|
92
|
+
const sfdxProjectRaw = await (0, fsUtils_1.readFile)(sfdxProjectPath);
|
|
92
93
|
const sfdxProject = JSON.parse(sfdxProjectRaw);
|
|
93
94
|
this.config.apiVersion =
|
|
94
95
|
parseInt(sfdxProject[SOURCE_API_VERSION_ATTRIBUTE]) || -1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cliHelper.js","sourceRoot":"","sources":["../../src/utils/cliHelper.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;;AACZ,wEAAuC;AACvC,+DAAoC;AACpC,oEAAmC;AACnC,2DAAkD;AAClD,iDAAkD;AAClD,iEAGoC;AACpC,+BAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"cliHelper.js","sourceRoot":"","sources":["../../src/utils/cliHelper.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;;AACZ,wEAAuC;AACvC,+DAAoC;AACpC,oEAAmC;AACnC,2DAAkD;AAClD,iDAAkD;AAClD,iEAGoC;AACpC,+BAA6B;AAC7B,yCAAkC;AAClC,uCAA2D;AAC3D,+BAA2B;AAI3B,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAE1D,MAAM,kBAAkB,GAAqB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;AAC3D,MAAM,4BAA4B,GAAG,kBAAkB,CAAA;AACvD,MAAM,sBAAsB,GAAG,mBAAmB,CAAA;AAElD,MAAqB,SAAS;IAI5B,YAA+B,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QACvC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACzB,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC7C,CAAC;IAES,KAAK,CAAC,eAAe;QAC7B,MAAM,MAAM,GAAa,EAAE,CAAA;QAC3B,MAAM,OAAO,CAAC,GAAG,CACf,kBAAkB,CAAC,MAAM,CAAC,CAAC,YAA0B,EAAE,EAAE;YACvD,MAAM,QAAQ,GAAW,IAAI,CAAC,MAAM,CAAC,YAAY,CAA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C;AAEY,QAAA,gBAAgB,GAAG,MAAM,CAAA;AACzB,QAAA,oBAAoB,GAAG,UAAU,CAAA;AACjC,QAAA,oBAAoB,GAAG,IAAI,CAAA;AAC3B,QAAA,kBAAkB,GAAG,IAAI,CAAA"}
|
package/lib/utils/fsHelper.d.ts
CHANGED
|
@@ -4,12 +4,8 @@ export declare const copyFiles: (config: Config, src: string) => Promise<void>;
|
|
|
4
4
|
export declare const readPathFromGit: (path: string, config: Config) => Promise<string>;
|
|
5
5
|
export declare const pathExists: (path: string, config: Config) => Promise<boolean>;
|
|
6
6
|
export declare const readDir: (dir: string, config: Config) => Promise<string[]>;
|
|
7
|
-
export declare const readFile: (path: string) => Promise<string>;
|
|
8
7
|
export declare function scan(dir: string, config: Config): AsyncGenerator<string, void, void>;
|
|
9
|
-
export declare const writeFile: (path: string, content: string,
|
|
10
|
-
export declare const isSubDir: (parent: string, dir: string) => boolean;
|
|
8
|
+
export declare const writeFile: (path: string, content: string, config: Config) => Promise<void>;
|
|
11
9
|
export declare const scanExtension: (dir: string, ext: string, config: Config) => Promise<string[]>;
|
|
12
|
-
export declare const dirExists: (dir: string) => Promise<boolean>;
|
|
13
|
-
export declare const fileExists: (file: string) => Promise<boolean>;
|
|
14
10
|
export declare const isGit: (dir: string) => Promise<boolean>;
|
|
15
11
|
export declare const DOT = ".";
|
package/lib/utils/fsHelper.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DOT = exports.isGit = exports.
|
|
4
|
-
const fs_extra_1 = require("fs-extra");
|
|
3
|
+
exports.DOT = exports.isGit = exports.scanExtension = exports.writeFile = exports.scan = exports.readDir = exports.pathExists = exports.readPathFromGit = exports.copyFiles = exports.gitPathSeparatorNormalizer = void 0;
|
|
5
4
|
const path_1 = require("path");
|
|
6
|
-
const
|
|
5
|
+
const fs_extra_1 = require("fs-extra");
|
|
7
6
|
const gitConstants_1 = require("./gitConstants");
|
|
8
7
|
const childProcessUtils_1 = require("./childProcessUtils");
|
|
9
8
|
const gitLfsHelper_1 = require("./gitLfsHelper");
|
|
9
|
+
const ignoreHelper_1 = require("./ignoreHelper");
|
|
10
|
+
const fsUtils_1 = require("./fsUtils");
|
|
10
11
|
const FOLDER = 'tree';
|
|
11
12
|
const showCmd = ['--no-pager', 'show'];
|
|
12
13
|
const gitPathSeparatorNormalizer = (path) => path.replace(/\\+/g, gitConstants_1.GIT_PATH_SEP);
|
|
@@ -14,9 +15,14 @@ exports.gitPathSeparatorNormalizer = gitPathSeparatorNormalizer;
|
|
|
14
15
|
const copiedFiles = new Set();
|
|
15
16
|
const writtenFiles = new Set();
|
|
16
17
|
const copyFiles = async (config, src) => {
|
|
17
|
-
if (copiedFiles.has(src) || writtenFiles.has(src))
|
|
18
|
+
if (copiedFiles.has(src) || writtenFiles.has(src)) {
|
|
18
19
|
return;
|
|
20
|
+
}
|
|
19
21
|
copiedFiles.add(src);
|
|
22
|
+
const ignoreHelper = await (0, ignoreHelper_1.buildIgnoreHelper)(config);
|
|
23
|
+
if (ignoreHelper.globalIgnore.ignores(src)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
20
26
|
try {
|
|
21
27
|
const bufferData = await readPathFromGitAsBuffer(src, config);
|
|
22
28
|
const utf8Data = bufferData?.toString(gitConstants_1.UTF8_ENCODING) ?? '';
|
|
@@ -32,7 +38,7 @@ const copyFiles = async (config, src) => {
|
|
|
32
38
|
const dst = (0, path_1.join)(config.output, (0, childProcessUtils_1.treatPathSep)(src));
|
|
33
39
|
// Use Buffer to output the file content
|
|
34
40
|
// Let fs implementation detect the encoding ("utf8" or "binary")
|
|
35
|
-
await (0,
|
|
41
|
+
await (0, fs_extra_1.outputFile)(dst, bufferData);
|
|
36
42
|
}
|
|
37
43
|
}
|
|
38
44
|
catch {
|
|
@@ -78,13 +84,6 @@ const readDir = async (dir, config) => {
|
|
|
78
84
|
return dirContent;
|
|
79
85
|
};
|
|
80
86
|
exports.readDir = readDir;
|
|
81
|
-
const readFile = async (path) => {
|
|
82
|
-
const file = await (0, fs_extra_1.readFile)(path, {
|
|
83
|
-
encoding: gitConstants_1.UTF8_ENCODING,
|
|
84
|
-
});
|
|
85
|
-
return file;
|
|
86
|
-
};
|
|
87
|
-
exports.readFile = readFile;
|
|
88
87
|
async function* scan(dir, config) {
|
|
89
88
|
const entries = await (0, exports.readDir)(dir, config);
|
|
90
89
|
for (const file of entries) {
|
|
@@ -99,18 +98,18 @@ async function* scan(dir, config) {
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
exports.scan = scan;
|
|
102
|
-
const writeFile = async (path, content,
|
|
103
|
-
if (writtenFiles.has(path))
|
|
101
|
+
const writeFile = async (path, content, config) => {
|
|
102
|
+
if (writtenFiles.has(path)) {
|
|
104
103
|
return;
|
|
104
|
+
}
|
|
105
105
|
writtenFiles.add(path);
|
|
106
|
-
|
|
106
|
+
const ignoreHelper = await (0, ignoreHelper_1.buildIgnoreHelper)(config);
|
|
107
|
+
if (ignoreHelper.globalIgnore.ignores(path)) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
await (0, fs_extra_1.outputFile)((0, path_1.join)(config.output, (0, childProcessUtils_1.treatPathSep)(path)), content);
|
|
107
111
|
};
|
|
108
112
|
exports.writeFile = writeFile;
|
|
109
|
-
const isSubDir = (parent, dir) => {
|
|
110
|
-
const rel = (0, path_1.relative)(parent, dir);
|
|
111
|
-
return !!rel && !rel.startsWith('..') && !(0, path_1.isAbsolute)(rel);
|
|
112
|
-
};
|
|
113
|
-
exports.isSubDir = isSubDir;
|
|
114
113
|
const scanExtension = async (dir, ext, config) => {
|
|
115
114
|
const result = [];
|
|
116
115
|
for await (const file of scan(dir, config)) {
|
|
@@ -121,29 +120,9 @@ const scanExtension = async (dir, ext, config) => {
|
|
|
121
120
|
return result;
|
|
122
121
|
};
|
|
123
122
|
exports.scanExtension = scanExtension;
|
|
124
|
-
const dirExists = async (dir) => {
|
|
125
|
-
try {
|
|
126
|
-
const st = await (0, fs_extra_2.stat)(dir);
|
|
127
|
-
return st.isDirectory();
|
|
128
|
-
}
|
|
129
|
-
catch {
|
|
130
|
-
return false;
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
exports.dirExists = dirExists;
|
|
134
|
-
const fileExists = async (file) => {
|
|
135
|
-
try {
|
|
136
|
-
const st = await (0, fs_extra_2.stat)(file);
|
|
137
|
-
return st.isFile();
|
|
138
|
-
}
|
|
139
|
-
catch {
|
|
140
|
-
return false;
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
exports.fileExists = fileExists;
|
|
144
123
|
const isGit = async (dir) => {
|
|
145
|
-
const isGitDir = await (0,
|
|
146
|
-
const isGitFile = await (0,
|
|
124
|
+
const isGitDir = await (0, fsUtils_1.dirExists)((0, path_1.join)(dir, gitConstants_1.GIT_FOLDER));
|
|
125
|
+
const isGitFile = await (0, fsUtils_1.fileExists)((0, path_1.join)(dir, gitConstants_1.GIT_FOLDER));
|
|
147
126
|
return isGitDir || isGitFile;
|
|
148
127
|
};
|
|
149
128
|
exports.isGit = isGit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fsHelper.js","sourceRoot":"","sources":["../../src/utils/fsHelper.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;AACZ
|
|
1
|
+
{"version":3,"file":"fsHelper.js","sourceRoot":"","sources":["../../src/utils/fsHelper.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;AACZ,+BAA2B;AAC3B,uCAA6D;AAC7D,iDAKuB;AACvB,2DAA6E;AAC7E,iDAA+D;AAC/D,iDAAkD;AAClD,uCAAiD;AAGjD,MAAM,MAAM,GAAG,MAAM,CAAA;AAErB,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;AAC/B,MAAM,0BAA0B,GAAG,CAAC,IAAY,EAAE,EAAE,CACzD,IAAI,CAAC,OAAO,CA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,QAAQ,IAAI,SAAS,CAAA;AAC9B,CAAC,CAAA;AALY,QAAA,KAAK,SAKjB;AAEY,QAAA,GAAG,GAAG,GAAG,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const isSubDir: (parent: string, dir: string) => boolean;
|
|
2
|
+
export declare const dirExists: (dir: string) => Promise<boolean>;
|
|
3
|
+
export declare const fileExists: (file: string) => Promise<boolean>;
|
|
4
|
+
export declare const readFile: (path: string) => Promise<string>;
|
|
5
|
+
export declare const DOT = ".";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DOT = exports.readFile = exports.fileExists = exports.dirExists = exports.isSubDir = void 0;
|
|
4
|
+
const fs_extra_1 = require("fs-extra");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const gitConstants_1 = require("./gitConstants");
|
|
7
|
+
const isSubDir = (parent, dir) => {
|
|
8
|
+
const rel = (0, path_1.relative)(parent, dir);
|
|
9
|
+
return !!rel && !rel.startsWith('..') && !(0, path_1.isAbsolute)(rel);
|
|
10
|
+
};
|
|
11
|
+
exports.isSubDir = isSubDir;
|
|
12
|
+
const dirExists = async (dir) => {
|
|
13
|
+
try {
|
|
14
|
+
const st = await (0, fs_extra_1.stat)(dir);
|
|
15
|
+
return st.isDirectory();
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.dirExists = dirExists;
|
|
22
|
+
const fileExists = async (file) => {
|
|
23
|
+
try {
|
|
24
|
+
const st = await (0, fs_extra_1.stat)(file);
|
|
25
|
+
return st.isFile();
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.fileExists = fileExists;
|
|
32
|
+
const readFile = async (path) => {
|
|
33
|
+
const file = await (0, fs_extra_1.readFile)(path, {
|
|
34
|
+
encoding: gitConstants_1.UTF8_ENCODING,
|
|
35
|
+
});
|
|
36
|
+
return file;
|
|
37
|
+
};
|
|
38
|
+
exports.readFile = readFile;
|
|
39
|
+
exports.DOT = '.';
|
|
40
|
+
//# sourceMappingURL=fsUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fsUtils.js","sourceRoot":"","sources":["../../src/utils/fsUtils.ts"],"names":[],"mappings":";;;AAAA,uCAAuD;AACvD,+BAA2C;AAC3C,iDAA8C;AAEvC,MAAM,QAAQ,GAAG,CAAC,MAAc,EAAE,GAAW,EAAE,EAAE;IACtD,MAAM,GAAG,GAAG,IAAA,eAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAA,iBAAU,EAAC,GAAG,CAAC,CAAA;AAC3D,CAAC,CAAA;AAHY,QAAA,QAAQ,YAGpB;AAEM,MAAM,SAAS,GAAG,KAAK,EAAE,GAAW,EAAE,EAAE;IAC7C,IAAI,CAAC;QACH,MAAM,EAAE,GAAG,MAAM,IAAA,eAAI,EAAC,GAAG,CAAC,CAAA;QAC1B,OAAO,EAAE,CAAC,WAAW,EAAE,CAAA;IACzB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC,CAAA;AAPY,QAAA,SAAS,aAOrB;AAEM,MAAM,UAAU,GAAG,KAAK,EAAE,IAAY,EAAE,EAAE;IAC/C,IAAI,CAAC;QACH,MAAM,EAAE,GAAG,MAAM,IAAA,eAAI,EAAC,IAAI,CAAC,CAAA;QAC3B,OAAO,EAAE,CAAC,MAAM,EAAE,CAAA;IACpB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC,CAAA;AAPY,QAAA,UAAU,cAOtB;AAEM,MAAM,QAAQ,GAAG,KAAK,EAAE,IAAY,EAAE,EAAE;IAC7C,MAAM,IAAI,GAAG,MAAM,IAAA,mBAAU,EAAC,IAAI,EAAE;QAClC,QAAQ,EAAE,4BAAa;KACxB,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AALY,QAAA,QAAQ,YAKpB;AAEY,QAAA,GAAG,GAAG,GAAG,CAAA"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.resetIncludeInstance = exports.resetIgnoreInstance = exports.buildIncludeHelper = exports.buildIgnoreHelper = exports.IgnoreHelper = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ignore_1 = tslib_1.__importDefault(require("ignore"));
|
|
6
|
-
const
|
|
6
|
+
const fsUtils_1 = require("./fsUtils");
|
|
7
7
|
const gitConstants_1 = require("./gitConstants");
|
|
8
8
|
const BASE_DESTRUCTIVE_IGNORE = ['recordTypes/'];
|
|
9
9
|
class IgnoreHelper {
|
|
@@ -36,7 +36,7 @@ const buildIgnoreHelper = async ({ ignore, ignoreDestructive, }) => {
|
|
|
36
36
|
const destructiveIgnore = ignoreDestructive
|
|
37
37
|
? await _buildIgnore(ignoreDestructive)
|
|
38
38
|
: await _buildIgnore(ignore);
|
|
39
|
-
|
|
39
|
+
destructiveIgnore.add(BASE_DESTRUCTIVE_IGNORE);
|
|
40
40
|
ignoreInstance = new IgnoreHelper(globalIgnore, destructiveIgnore);
|
|
41
41
|
}
|
|
42
42
|
return ignoreInstance;
|
|
@@ -55,14 +55,11 @@ exports.buildIncludeHelper = buildIncludeHelper;
|
|
|
55
55
|
const _buildIgnore = async (ignorePath) => {
|
|
56
56
|
const ign = (0, ignore_1.default)();
|
|
57
57
|
if (ignorePath) {
|
|
58
|
-
const content = await (0,
|
|
58
|
+
const content = await (0, fsUtils_1.readFile)(ignorePath);
|
|
59
59
|
ign.add(content.toString());
|
|
60
60
|
}
|
|
61
61
|
return ign;
|
|
62
62
|
};
|
|
63
|
-
const _addDefaultDestructiveIgnore = async (destructiveIgnore) => {
|
|
64
|
-
destructiveIgnore.add(BASE_DESTRUCTIVE_IGNORE);
|
|
65
|
-
};
|
|
66
63
|
const resetIgnoreInstance = () => {
|
|
67
64
|
ignoreInstance = null;
|
|
68
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignoreHelper.js","sourceRoot":"","sources":["../../src/utils/ignoreHelper.ts"],"names":[],"mappings":";;;;AAAA,4DAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"ignoreHelper.js","sourceRoot":"","sources":["../../src/utils/ignoreHelper.ts"],"names":[],"mappings":";;;;AAAA,4DAAuC;AACvC,uCAAoC;AACpC,iDAKuB;AAEvB,MAAM,uBAAuB,GAAG,CAAC,cAAc,CAAC,CAAA;AAEhD,MAAa,YAAY;IACvB;IACE,0CAA0C;IAC1B,YAAoB;IACpC,0CAA0C;IACvB,iBAAyB;QAF5B,iBAAY,GAAZ,YAAY,CAAQ;QAEjB,sBAAiB,GAAjB,iBAAiB,CAAQ;IAC3C,CAAC;IAEG,IAAI,CAAC,IAAY;QACtB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;QAEjC,IAAI,WAAoB,CAAA;QACxB,IAAI,uBAAQ,IAAI,UAAU,EAAE,CAAC;YAC3B,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAA;QACtC,CAAC;aAAM,IAAI,CAAC,uBAAQ,EAAE,2BAAY,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzD,WAAW,GAAG,IAAI,CAAC,YAAY,CAAA;QACjC,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,kCAAmB,EAAE,EAAE,CAAC,CAAA;QAEtD,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;IACxC,CAAC;CACF;AAt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EAAE,CAAC,CAAA;IAC7B,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAEM,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,cAAc,GAAG,IAAI,CAAA;AACvB,CAAC,CAAA;AAFY,QAAA,mBAAmB,uBAE/B;AAEM,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACvC,eAAe,GAAG,IAAI,CAAA;AACxB,CAAC,CAAA;AAFY,QAAA,oBAAoB,wBAEhC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"5.
|
|
1
|
+
{"version":"5.32.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","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 metadata API version, default to sfdx-project.json \"sourceApiVersion\" attribute or latest version"},"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.32.0",
|
|
4
4
|
"description": "Generate the sfdx content in source format and destructive change from two git commits",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"salesforce",
|
|
@@ -83,6 +83,8 @@
|
|
|
83
83
|
"depcheck": "^1.4.7",
|
|
84
84
|
"eslint": "^8.54.0",
|
|
85
85
|
"eslint-config-prettier": "^9.0.0",
|
|
86
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
87
|
+
"eslint-plugin-import": "^2.29.0",
|
|
86
88
|
"eslint-plugin-prettier": "^5.0.1",
|
|
87
89
|
"husky": "^8.0.3",
|
|
88
90
|
"jest": "^29.7.0",
|