sf-decomposer 5.3.7 → 5.3.8
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
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
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.
|
|
7
7
|
|
|
8
|
+
## [5.3.8](https://github.com/mcarvin8/sf-decomposer/compare/v5.3.7...v5.3.8) (2025-02-03)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** bump @salesforce/source-deploy-retrieve ([3d3b160](https://github.com/mcarvin8/sf-decomposer/commit/3d3b16029fa3b56f48d17694e5a0fb25d173ac2e))
|
|
14
|
+
|
|
8
15
|
## [5.3.7](https://github.com/mcarvin8/sf-decomposer/compare/v5.3.6...v5.3.7) (2025-02-03)
|
|
9
16
|
|
|
10
17
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
/* eslint-disable no-await-in-loop */
|
|
3
2
|
import { resolve, join, basename } from 'node:path';
|
|
4
3
|
import { readFile, readdir, stat } from 'node:fs/promises';
|
|
5
4
|
import { getRepoRoot } from '../service/getRepoRoot.js';
|
|
@@ -15,33 +14,30 @@ export async function getPackageDirectories(metaDirectory, ignoreDirs) {
|
|
|
15
14
|
const sfdxProject = JSON.parse(sfdxProjectRaw);
|
|
16
15
|
const normalizedIgnoreDirs = (ignoreDirs ?? []).map((dir) => basename(dir));
|
|
17
16
|
const packageDirectories = sfdxProject.packageDirectories.map((directory) => resolve(repoRoot, directory.path));
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
continue;
|
|
17
|
+
const searchPromises = packageDirectories.map(async (directory) => {
|
|
18
|
+
if (!normalizedIgnoreDirs.includes(basename(directory))) {
|
|
19
|
+
return searchRecursively(directory, metaDirectory);
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
}
|
|
21
|
+
});
|
|
22
|
+
const results = await Promise.all(searchPromises);
|
|
23
|
+
const metadataPaths = results.filter((filePath) => filePath !== undefined).map((filePath) => resolve(filePath));
|
|
28
24
|
return { metadataPaths, ignorePath };
|
|
29
25
|
}
|
|
30
26
|
async function searchRecursively(dxDirectory, subDirectoryName) {
|
|
31
27
|
const files = await readdir(dxDirectory);
|
|
32
|
-
|
|
28
|
+
const searchPromises = files.map(async (file) => {
|
|
33
29
|
const filePath = join(dxDirectory, file);
|
|
34
30
|
const stats = await stat(filePath);
|
|
35
|
-
if (stats.isDirectory()
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
if (stats.isDirectory()) {
|
|
32
|
+
if (file === subDirectoryName) {
|
|
33
|
+
return filePath;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return searchRecursively(filePath, subDirectoryName);
|
|
39
37
|
}
|
|
40
38
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
return undefined;
|
|
39
|
+
});
|
|
40
|
+
const results = await Promise.all(searchPromises);
|
|
41
|
+
return results.find((result) => result !== undefined);
|
|
46
42
|
}
|
|
47
43
|
//# sourceMappingURL=getPackageDirectories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPackageDirectories.js","sourceRoot":"","sources":["../../src/metadata/getPackageDirectories.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"getPackageDirectories.js","sourceRoot":"","sources":["../../src/metadata/getPackageDirectories.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBA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12.14.
|
|
1601
|
-
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.14.
|
|
1602
|
-
integrity sha512-
|
|
1599
|
+
"@salesforce/source-deploy-retrieve@^12.14.2":
|
|
1600
|
+
version "12.14.2"
|
|
1601
|
+
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.14.2.tgz#c14c62f2d72d5415265401068bb0e046a2b0f973"
|
|
1602
|
+
integrity sha512-ZLV5YYNZV7d+ONzrgA+VeMsdWr+sqx2WQaswFK6RzrHPqItsczp6RM298oOZm8ZvKJCdQpjiRi0/cDqKGX/nkw==
|
|
1603
1603
|
dependencies:
|
|
1604
1604
|
"@salesforce/core" "^8.8.2"
|
|
1605
1605
|
"@salesforce/kit" "^3.2.3"
|
|
@@ -7086,7 +7086,16 @@ streamroller@^3.1.5:
|
|
|
7086
7086
|
debug "^4.3.4"
|
|
7087
7087
|
fs-extra "^8.1.0"
|
|
7088
7088
|
|
|
7089
|
-
"string-width-cjs@npm:string-width@^4.2.0"
|
|
7089
|
+
"string-width-cjs@npm:string-width@^4.2.0":
|
|
7090
|
+
version "4.2.3"
|
|
7091
|
+
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
|
|
7092
|
+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
|
7093
|
+
dependencies:
|
|
7094
|
+
emoji-regex "^8.0.0"
|
|
7095
|
+
is-fullwidth-code-point "^3.0.0"
|
|
7096
|
+
strip-ansi "^6.0.1"
|
|
7097
|
+
|
|
7098
|
+
string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
|
|
7090
7099
|
version "4.2.3"
|
|
7091
7100
|
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
|
|
7092
7101
|
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
|
@@ -7154,7 +7163,14 @@ string_decoder@^1.3.0:
|
|
|
7154
7163
|
dependencies:
|
|
7155
7164
|
safe-buffer "~5.2.0"
|
|
7156
7165
|
|
|
7157
|
-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1"
|
|
7166
|
+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
|
|
7167
|
+
version "6.0.1"
|
|
7168
|
+
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
|
|
7169
|
+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
|
7170
|
+
dependencies:
|
|
7171
|
+
ansi-regex "^5.0.1"
|
|
7172
|
+
|
|
7173
|
+
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
|
|
7158
7174
|
version "6.0.1"
|
|
7159
7175
|
resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
|
|
7160
7176
|
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
|
@@ -7724,7 +7740,7 @@ workerpool@^6.5.1:
|
|
|
7724
7740
|
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544"
|
|
7725
7741
|
integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==
|
|
7726
7742
|
|
|
7727
|
-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0"
|
|
7743
|
+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
|
|
7728
7744
|
version "7.0.0"
|
|
7729
7745
|
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
|
|
7730
7746
|
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
|
@@ -7742,6 +7758,15 @@ wrap-ansi@^6.2.0:
|
|
|
7742
7758
|
string-width "^4.1.0"
|
|
7743
7759
|
strip-ansi "^6.0.0"
|
|
7744
7760
|
|
|
7761
|
+
wrap-ansi@^7.0.0:
|
|
7762
|
+
version "7.0.0"
|
|
7763
|
+
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
|
|
7764
|
+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
|
7765
|
+
dependencies:
|
|
7766
|
+
ansi-styles "^4.0.0"
|
|
7767
|
+
string-width "^4.1.0"
|
|
7768
|
+
strip-ansi "^6.0.0"
|
|
7769
|
+
|
|
7745
7770
|
wrap-ansi@^8.1.0:
|
|
7746
7771
|
version "8.1.0"
|
|
7747
7772
|
resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz"
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sf-decomposer",
|
|
3
3
|
"description": "Decomposes Salesforce metadata into more manageable files.",
|
|
4
|
-
"version": "5.3.
|
|
4
|
+
"version": "5.3.8",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "^4",
|
|
7
7
|
"@salesforce/core": "^8.2.1",
|
|
8
8
|
"@salesforce/sf-plugins-core": "^11.2.1",
|
|
9
|
-
"@salesforce/source-deploy-retrieve": "^12.14.
|
|
9
|
+
"@salesforce/source-deploy-retrieve": "^12.14.2",
|
|
10
10
|
"fs-extra": "^11.2.0",
|
|
11
11
|
"xml-disassembler": "^1.3.11",
|
|
12
12
|
"xml2json-disassembler": "^1.1.11",
|