sf-decomposer 5.0.1 → 5.1.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 ADDED
@@ -0,0 +1,439 @@
1
+ <!-- markdownlint-disable MD024 MD025 -->
2
+ <!-- markdown-link-check-disable -->
3
+
4
+ # Changelog
5
+
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
+
8
+ ## [5.1.0](https://github.com/mcarvin8/sf-decomposer/compare/v5.0.1...v5.1.0) (2024-10-28)
9
+
10
+
11
+ ### Features
12
+
13
+ * remove dependency on git repos ([39e83db](https://github.com/mcarvin8/sf-decomposer/commit/39e83db06b428373c52e0e5305073127b7668f2f))
14
+
15
+ ## [5.0.1](https://github.com/mcarvin8/sf-decomposer/compare/v5.0.0...v5.0.1) (2024-10-09)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * rename decomposed labels in yaml and json format with `label` suffix ([c95ed2d](https://github.com/mcarvin8/sf-decomposer/commit/c95ed2d1d8b71e2baa4d502dd03dd63256c0da27))
21
+
22
+ ## [5.0.0](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.8...v5.0.0) (2024-10-04)
23
+
24
+
25
+ ### ⚠ BREAKING CHANGES
26
+
27
+ * rename decomposed labels to align with salesforce's decomposed labels
28
+
29
+ ### Features
30
+
31
+ * rename decomposed labels to align with salesforce's decomposed labels ([90bc332](https://github.com/mcarvin8/sf-decomposer/commit/90bc332fb4998fcce8adbda283d4e3532a2922e2))
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * **deps:** bump @salesforce/source-deploy-retrieve from 12.1.8 to 12.7.3 ([ae0e188](https://github.com/mcarvin8/sf-decomposer/commit/ae0e1888e84be2988ad1d0e10bb61999cd26f2d5))
37
+
38
+ ## [4.1.8](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.7...v4.1.8) (2024-07-28)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * switch to isomorphic-git ([e483bef](https://github.com/mcarvin8/sf-decomposer/commit/e483bef0c6b007e66e7915fb4701d622fb00302c))
44
+
45
+ ## [4.1.7](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.6...v4.1.7) (2024-07-27)
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * upgrade sf-plugins-core ([0119f34](https://github.com/mcarvin8/sf-decomposer/commit/0119f34d7bf3bc6c2f072e091fdb89e4e41265e4))
51
+
52
+ ## [4.1.6](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.5...v4.1.6) (2024-07-27)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * add unique ID element for loyaltyProgramSetup ([1c72ac9](https://github.com/mcarvin8/sf-decomposer/commit/1c72ac94a8472c6855280cd92e3a8ac4f01739cf))
58
+ * upgrade salesforce dependencies ([b813332](https://github.com/mcarvin8/sf-decomposer/commit/b8133320160c76ffc4f42cc2d6577a3b18912dd6))
59
+
60
+ ## [4.1.5](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.4...v4.1.5) (2024-06-14)
61
+
62
+
63
+ ### Bug Fixes
64
+
65
+ * cleaner warning message ([4e22408](https://github.com/mcarvin8/sf-decomposer/commit/4e22408006cdaa733e9cf5565ea5e4a38909cf9b))
66
+
67
+ ## [4.1.4](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.3...v4.1.4) (2024-06-12)
68
+
69
+ ### Bug Fixes
70
+
71
+ - switch Node working directory to repo root folder ([fa2f0bb](https://github.com/mcarvin8/sf-decomposer/commit/fa2f0bb91b45e28887ec958bc4924e8bbb33d468))
72
+
73
+ ## [4.1.3](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.2...v4.1.3) (2024-05-22)
74
+
75
+ ### Bug Fixes
76
+
77
+ - fix logger warning for ignore file path ([6e790da](https://github.com/mcarvin8/sf-decomposer/commit/6e790daad05f933311377a6bf8e268f461b4b4c4))
78
+
79
+ ## [4.1.2](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.1...v4.1.2) (2024-05-22)
80
+
81
+ ### Bug Fixes
82
+
83
+ - rename ignore file to `.sfdecomposerignore` ([de5260a](https://github.com/mcarvin8/sf-decomposer/commit/de5260a58ee0e9d28bbd40330486193ce18d35ed))
84
+
85
+ ## [4.1.1](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.0...v4.1.1) (2024-05-22)
86
+
87
+ ### Bug Fixes
88
+
89
+ - post disclaimer to state this plugin must be ran in the root folder ([5ba6bf5](https://github.com/mcarvin8/sf-decomposer/commit/5ba6bf5039cbb04f596191810fae98d807eb6934))
90
+
91
+ # [4.1.0](https://github.com/mcarvin8/sf-decomposer/compare/v4.0.1...v4.1.0) (2024-05-22)
92
+
93
+ ### Features
94
+
95
+ - process an ignore file when decomposing ([f7d72f7](https://github.com/mcarvin8/sf-decomposer/commit/f7d72f75846a603d10d5c1cb40edc4bd4cec5691))
96
+
97
+ ## [4.0.1](https://github.com/mcarvin8/sf-decomposer/compare/v4.0.0...v4.0.1) (2024-04-30)
98
+
99
+ ### Bug Fixes
100
+
101
+ - add project deploy prerun hook for recompose command ([c073993](https://github.com/mcarvin8/sf-decomposer/commit/c073993b55aee1146c52e0cc76d62f36a58647e1))
102
+
103
+ # [4.0.0](https://github.com/mcarvin8/sf-decomposer/compare/v3.3.10...v4.0.0) (2024-04-29)
104
+
105
+ ### Features
106
+
107
+ - rename package to `sf-decomposer` ([f03134d](https://github.com/mcarvin8/sf-decomposer/commit/f03134d723e9f693ec305833a62fc1a9aff79026))
108
+
109
+ ### BREAKING CHANGES
110
+
111
+ - renamed from `sfdx-decomposer` to `sf-decomposer`
112
+
113
+ ## [3.3.10](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.9...v3.3.10) (2024-04-29)
114
+
115
+ ### Bug Fixes
116
+
117
+ - deprecate this package. this will be renamed to `sf-decomposer`. ([1305913](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/1305913cfe558cc13859d3269b5b737e91e11460))
118
+
119
+ ## [3.3.9](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.8...v3.3.9) (2024-04-29)
120
+
121
+ ### Bug Fixes
122
+
123
+ - rename hook JSON to `.sfdecomposer.config.json` ([ecb6140](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/ecb6140eb56818272b1c5e9aaf7a61ece09e411b))
124
+
125
+ ## [3.3.8](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.7...v3.3.8) (2024-04-29)
126
+
127
+ ### Bug Fixes
128
+
129
+ - read a new JSON file for post retrieve hook variables ([7a2b39f](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/7a2b39f54c992e541aed67465bce38dc220fc1a9))
130
+
131
+ ## [3.3.7](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.6...v3.3.7) (2024-04-29)
132
+
133
+ ### Bug Fixes
134
+
135
+ - add env variable for decomposed file format to post retrieve hook ([5c22ef9](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/5c22ef9a3d2d4bca7615bcc55cc6ea6b50e9e689))
136
+
137
+ ## [3.3.6](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.5...v3.3.6) (2024-04-29)
138
+
139
+ ### Bug Fixes
140
+
141
+ - fix postpurge hook name in readme ([9c3a9b7](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9c3a9b73670f899a878fe32a6b92e0942864e369))
142
+
143
+ ## [3.3.5](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.4...v3.3.5) (2024-04-29)
144
+
145
+ ### Bug Fixes
146
+
147
+ - add post retrieve hook to run decompose command ([64ede9e](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/64ede9e9da4fca403b538161b04ff379adc57508))
148
+
149
+ ## [3.3.4](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.3...v3.3.4) (2024-04-24)
150
+
151
+ ### Bug Fixes
152
+
153
+ - fix promises in commands ([02f1470](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/02f14709445ff7abb4d21318cfe66228f5a02946))
154
+
155
+ ## [3.3.3](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.2...v3.3.3) (2024-04-24)
156
+
157
+ ### Bug Fixes
158
+
159
+ - allow `--metadata-type` to be declared multiple times in a command ([e4d489a](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e4d489a7e6d12b7f9ff1bc1d335c0fe0ef3cda8f))
160
+ - upgrade disassemblers ([d1cc730](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/d1cc7306e4dd30f10976a1ac8982cdbda739659c))
161
+
162
+ ## [3.3.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.1...v3.3.2) (2024-04-24)
163
+
164
+ ### Bug Fixes
165
+
166
+ - upgrade disassemblers to fix multi-line leaf content sorting ([d9e4672](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/d9e46729186d5f33c97e89972306413f6d52a224))
167
+
168
+ ## [3.3.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.0...v3.3.1) (2024-04-23)
169
+
170
+ ### Bug Fixes
171
+
172
+ - use `simple-git` to get `sfdx-project.json` path, remove `--sfdx-configuration` flag ([9bfe341](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9bfe3410da98db1316211eb5acde920fac569981))
173
+
174
+ # [3.3.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.2.3...v3.3.0) (2024-04-17)
175
+
176
+ ### Features
177
+
178
+ - allow decomposed files to be XMLs, JSONs, or YAMLs ([0256e68](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/0256e68b82bd2aae36f5ac64aeb405f9dabb3d68))
179
+
180
+ ## [3.2.3](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.2.2...v3.2.3) (2024-04-08)
181
+
182
+ ### Bug Fixes
183
+
184
+ - log xml disassembler errors as warnings when running both commands ([117cf60](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/117cf606683f2e96fe22d7c6170b5ac170070402))
185
+
186
+ ## [3.2.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.2.1...v3.2.2) (2024-04-08)
187
+
188
+ ### Bug Fixes
189
+
190
+ - add `--postpurge` flag to recompose, refactor imports, upgrade disassembler ([ee8a52b](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/ee8a52bcf3368737406a7fb60db09180b5e4da9a))
191
+
192
+ ## [3.2.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.2.0...v3.2.1) (2024-04-07)
193
+
194
+ ### Bug Fixes
195
+
196
+ - fix leaf file indenting by upgrading xml disassembler ([ed170f8](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/ed170f8df1aad761981107c4ddad130ec7fe2caa))
197
+
198
+ # [3.2.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.1...v3.2.0) (2024-04-02)
199
+
200
+ ### Bug Fixes
201
+
202
+ - **deps:** bump @oclif/core from 3.19.4 to 3.26.0 ([437a306](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/437a3060fb583f71a83a69d3695bc589bee19f3c))
203
+ - **deps:** bump @salesforce/source-deploy-retrieve from 10.5.2 to 10.7.1 ([8b26d08](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/8b26d08d015d7bd6f7bd0eba9ee5fc0272b25ede))
204
+
205
+ ### Features
206
+
207
+ - read `sfdx-project.json` for directories and process multiple directories in a command ([518243d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/518243d19b833f71127fa956487b5a208983897d))
208
+
209
+ # [3.2.0-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.2-beta.2...v3.2.0-beta.1) (2024-04-02)
210
+
211
+ ### Features
212
+
213
+ - read `sfdx-project.json` for directories and process multiple directories in a command ([518243d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/518243d19b833f71127fa956487b5a208983897d))
214
+
215
+ ## [3.1.2-beta.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.2-beta.1...v3.1.2-beta.2) (2024-04-02)
216
+
217
+ ### Bug Fixes
218
+
219
+ - **deps:** bump @oclif/core from 3.19.4 to 3.26.0 ([437a306](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/437a3060fb583f71a83a69d3695bc589bee19f3c))
220
+
221
+ ## [3.1.2-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.1...v3.1.2-beta.1) (2024-04-01)
222
+
223
+ ### Bug Fixes
224
+
225
+ - **deps:** bump @salesforce/source-deploy-retrieve from 10.5.2 to 10.7.1 ([8b26d08](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/8b26d08d015d7bd6f7bd0eba9ee5fc0272b25ede))
226
+
227
+ ## [3.1.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.0...v3.1.1) (2024-03-15)
228
+
229
+ ### Bug Fixes
230
+
231
+ - load json using fs ([54f4853](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/54f4853375861dfa26a07f6c7aed7a8ebde688f3))
232
+ - readd `resolveJsonModule` to tsconfig.json ([9532e2f](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9532e2f8d3c862811e753ccaaec1d9a1f084c499))
233
+ - update @salesforce/source-deploy-retrieve ([d48871d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/d48871d37c57f1fa017b7a9fed11e914018e1ba1))
234
+
235
+ ## [3.1.1-beta.3](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.1-beta.2...v3.1.1-beta.3) (2024-03-15)
236
+
237
+ ### Bug Fixes
238
+
239
+ - readd `resolveJsonModule` to tsconfig.json ([9532e2f](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9532e2f8d3c862811e753ccaaec1d9a1f084c499))
240
+
241
+ ## [3.1.1-beta.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.1-beta.1...v3.1.1-beta.2) (2024-03-15)
242
+
243
+ ### Bug Fixes
244
+
245
+ - load json using fs ([54f4853](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/54f4853375861dfa26a07f6c7aed7a8ebde688f3))
246
+
247
+ ## [3.1.1-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.0...v3.1.1-beta.1) (2024-03-14)
248
+
249
+ ### Bug Fixes
250
+
251
+ - update @salesforce/source-deploy-retrieve ([d48871d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/d48871d37c57f1fa017b7a9fed11e914018e1ba1))
252
+
253
+ # [3.1.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.0.2...v3.1.0) (2024-03-12)
254
+
255
+ ### Bug Fixes
256
+
257
+ - only disassemble the original custom labels file ([1d6d502](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/1d6d502767331a15d0dd89e1daef8081c21f55bd))
258
+
259
+ ### Features
260
+
261
+ - rename `purge` flag to `prepurge` and add `postpurge` flag ([2fd7ff6](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/2fd7ff64c4bb9e261732675fb4b609e13400e830))
262
+
263
+ # [3.1.0-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.0.2-beta.1...v3.1.0-beta.1) (2024-03-12)
264
+
265
+ ### Bug Fixes
266
+
267
+ - only disassemble the original custom labels file ([1d6d502](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/1d6d502767331a15d0dd89e1daef8081c21f55bd))
268
+
269
+ ### Features
270
+
271
+ - rename `purge` flag to `prepurge` and add `postpurge` flag ([2fd7ff6](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/2fd7ff64c4bb9e261732675fb4b609e13400e830))
272
+
273
+ ## [3.0.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.0.1...v3.0.2) (2024-03-07)
274
+
275
+ ### Bug Fixes
276
+
277
+ - upgrade xml-disassembler to ensure consistent sorting in recomposed files on linux ([4230f95](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/4230f955b18bf5f50d861ade67b82d2e336b0d22))
278
+
279
+ ## [3.0.2-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.0.1...v3.0.2-beta.1) (2024-03-07)
280
+
281
+ ### Bug Fixes
282
+
283
+ - upgrade xml-disassembler to ensure consistent sorting in recomposed files on linux ([4230f95](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/4230f955b18bf5f50d861ade67b82d2e336b0d22))
284
+
285
+ ## [3.0.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.0.0...v3.0.1) (2024-02-24)
286
+
287
+ ### Bug Fixes
288
+
289
+ - delete empty custom label temp directory created during recompose process ([f27c211](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/f27c211c51c96be4b6b10ff55207ec761ad6c7a2))
290
+
291
+ # [3.0.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.2.0...v3.0.0) (2024-02-24)
292
+
293
+ ### Bug Fixes
294
+
295
+ - rename bot version meta files and delete recomposed files during test to ensure they are remade ([f6b4675](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/f6b4675a492692037441053ebfc93cc2a834e8d9))
296
+
297
+ ### Features
298
+
299
+ - add xml-disassembler package ([e5f6173](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e5f6173ea9dce4600e3544baf523406869486c0e))
300
+
301
+ ### BREAKING CHANGES
302
+
303
+ - Decompose files will need to be re-generated.
304
+
305
+ # [2.2.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.5...v2.2.0) (2024-02-18)
306
+
307
+ ### Features
308
+
309
+ - expand supported metadata types to the majority of metadata types supported by SDR ([02fb119](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/02fb119dae4b1c02a29f92149844368e3f543527))
310
+
311
+ ## [2.1.5](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.4...v2.1.5) (2024-02-17)
312
+
313
+ ### Bug Fixes
314
+
315
+ - if root element key is an array of leaf elements, add to leaf file ([3259d85](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/3259d855e89d495d34d4847ac21ba6f54f62db82))
316
+
317
+ ## [2.1.4](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.3...v2.1.4) (2024-02-16)
318
+
319
+ ### Bug Fixes
320
+
321
+ - fix how decompose sets unique id elements ([2a0d78a](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/2a0d78ab0a066253ae64c46628c1728c4512205d))
322
+
323
+ ## [2.1.3](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.2...v2.1.3) (2024-02-15)
324
+
325
+ ### Bug Fixes
326
+
327
+ - use short SHA-256 hash if no unique ID elements are found ([4ac65a0](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/4ac65a04e0f51859e9a7ae93509fe4497d13543b))
328
+
329
+ ## [2.1.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.1...v2.1.2) (2024-02-14)
330
+
331
+ ### Bug Fixes
332
+
333
+ - resolve lint issues on buildNestedElements ([e1bd33d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e1bd33d7e3a2e4c06bc3742faf0c1f56ac9c3f2d))
334
+
335
+ ## [2.1.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.0...v2.1.1) (2024-02-14)
336
+
337
+ ### Bug Fixes
338
+
339
+ - adjust comment prop name to allow comments in translations ([e3d9279](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e3d9279d77757eea630997f113da4042bc68f332))
340
+
341
+ # [2.1.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.0.2...v2.1.0) (2024-02-14)
342
+
343
+ ### Features
344
+
345
+ - add marketing app extensions and CDATA support ([38d6941](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/38d694184054b1caa35d9c9a04fd8448d69258fd))
346
+
347
+ ## [2.0.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.0.1...v2.0.2) (2024-02-14)
348
+
349
+ ### Bug Fixes
350
+
351
+ - links in readme ([e7351d3](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e7351d32ac1627f7a51b611fd8f4f134fffdb765))
352
+
353
+ ## [2.0.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.0.0...v2.0.1) (2024-02-14)
354
+
355
+ ### Bug Fixes
356
+
357
+ - **deps:** bump @salesforce/sf-plugins-core from 7.1.3 to 7.1.9 ([7b48afc](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/7b48afc50060449c7ffbc9d02a005ead19df4c69))
358
+
359
+ # [2.0.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.1...v2.0.0) (2024-02-11)
360
+
361
+ ### Bug Fixes
362
+
363
+ - **deps:** bump @salesforce/core from 6.5.1 to 6.5.3 ([0eff76c](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/0eff76c57039b697d9eaf9a482b24f90b8485399))
364
+ - **deps:** bump fast-xml-parser from 4.3.3 to 4.3.4 ([654d939](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/654d9397d6d1c49557c673151898f0a380676c5c))
365
+
366
+ ### Features
367
+
368
+ - rename compose command ([6a7002e](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/6a7002e44f0b5c4d5cfd137e80673c3423f2fb2d))
369
+
370
+ ### BREAKING CHANGES
371
+
372
+ - rename 'compose' command to 'recompose'
373
+
374
+ # [2.0.0-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.2-beta.2...v2.0.0-beta.1) (2024-02-11)
375
+
376
+ ### Features
377
+
378
+ - rename compose command ([6a7002e](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/6a7002e44f0b5c4d5cfd137e80673c3423f2fb2d))
379
+
380
+ ### BREAKING CHANGES
381
+
382
+ - rename 'compose' command to 'recompose'
383
+
384
+ ## [1.1.2-beta.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.2-beta.1...v1.1.2-beta.2) (2024-02-11)
385
+
386
+ ### Bug Fixes
387
+
388
+ - **deps:** bump @salesforce/core from 6.5.1 to 6.5.3 ([0eff76c](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/0eff76c57039b697d9eaf9a482b24f90b8485399))
389
+
390
+ ## [1.1.2-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.1...v1.1.2-beta.1) (2024-02-11)
391
+
392
+ ### Bug Fixes
393
+
394
+ - **deps:** bump fast-xml-parser from 4.3.3 to 4.3.4 ([654d939](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/654d9397d6d1c49557c673151898f0a380676c5c))
395
+
396
+ ## [1.1.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.0...v1.1.1) (2024-02-06)
397
+
398
+ ### Bug Fixes
399
+
400
+ - add logging from salesforce core ([3f80ca8](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/3f80ca8f9675f1306d88fbb4ae20ded0d624b5c8))
401
+
402
+ ## [1.1.1-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.0...v1.1.1-beta.1) (2024-02-06)
403
+
404
+ ### Bug Fixes
405
+
406
+ - add logging from salesforce core ([3f80ca8](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/3f80ca8f9675f1306d88fbb4ae20ded0d624b5c8))
407
+
408
+ # [1.1.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.0.0...v1.1.0) (2024-02-02)
409
+
410
+ ### Features
411
+
412
+ - import SDR for metadata types ([9b7b08a](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9b7b08a13c22e36ea4b7a0b3f0dee50da03ff77a))
413
+
414
+ # [1.0.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v0.1.1...v1.0.0) (2024-01-31)
415
+
416
+ ### Features
417
+
418
+ - beta release ([808e88c](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/808e88cbb5b25cf1bdc6076286448ffd0753aa52))
419
+ - trigger new beta release with async updates ([81e6792](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/81e6792e249a54e2a701a3f73706a7ba72e68e8f))
420
+
421
+ ### BREAKING CHANGES
422
+
423
+ - beta
424
+
425
+ # [1.0.0-beta.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-01-31)
426
+
427
+ ### Features
428
+
429
+ - trigger new beta release with async updates ([81e6792](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/81e6792e249a54e2a701a3f73706a7ba72e68e8f))
430
+
431
+ # [1.0.0-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v0.1.1...v1.0.0-beta.1) (2024-01-30)
432
+
433
+ ### Features
434
+
435
+ - beta release ([808e88c](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/808e88cbb5b25cf1bdc6076286448ffd0753aa52))
436
+
437
+ ### BREAKING CHANGES
438
+
439
+ - beta
package/README.md CHANGED
@@ -2,7 +2,29 @@
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/sf-decomposer.svg?label=sf-decomposer)](https://www.npmjs.com/package/sf-decomposer) [![Downloads/week](https://img.shields.io/npm/dw/sf-decomposer.svg)](https://npmjs.org/package/sf-decomposer) [![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/mcarvin8/sf-decomposer/main/LICENSE.md)
4
4
 
5
- The `sf-decomposer` is a Salesforce plugin that reads the original metadata files (XML) and creates smaller, more manageable files for version control. The inverse function (`recompose`) will recreate deployment-compatible metadata files. This plugin is intended for users who deploy their Salesforce codebase from a git repository that follows the Salesforce DX Project Configuration (`sfdx-project.json` file).
5
+ <!-- TABLE OF CONTENTS -->
6
+ <details>
7
+ <summary>Table of Contents</summary>
8
+
9
+ - [Install](#install)
10
+ - [Commands](#commands)
11
+ - [`sf decomposer decompose`](#sf-decomposer-decompose)
12
+ - [`sf decomposer recompose`](#sf-decomposer-recompose)
13
+ - [Supported Metadata](#supported-metadata)
14
+ - [Metadata Exceptions](#metadata-exceptions)
15
+ - [Warnings and Logging](#warnings-and-logging)
16
+ - [Ignore Files when Decomposing](#ignore-files-when-decomposing)
17
+ - [Hooks](#hooks)
18
+ - [Ignore Files](#ignore-files)
19
+ - [`.forceignore` updates](#.forceignore-updates)
20
+ - [`.gitignore` updates](#.gitignore-updates)
21
+ - [Contributing](#contributing)
22
+ - [Unique ID Elements](#unique-id-elements)
23
+ - [Issues](#issues)
24
+ - [License](#license)
25
+ </details>
26
+
27
+ The `sf-decomposer` is a Salesforce CLI plugin that reads the original metadata files (XML) and creates smaller, more manageable files for version control. The inverse function (`recompose`) will recreate deployment-compatible metadata files. This plugin is intended for users who deploy their Salesforce codebase from any repository that follows the Salesforce DX Project Configuration (`sfdx-project.json` file), not just git-based ones.
6
28
 
7
29
  This will parse and retain the following in the original XMLs:
8
30
 
@@ -14,7 +36,8 @@ The decomposed file format can be XML, JSON, or YAML. Based on testing, XML and
14
36
 
15
37
  **DISCLAIMERS:**
16
38
 
17
- - You must update the `.forceignore` to have the Salesforce CLI ignore the decomposed files created by this plugin. See section `Ignore Files`. Updates to the `.gitignore` are optional and can be updated based on what you want to be staged in your repo.
39
+ - You must update the `.forceignore` to have the Salesforce CLI ignore the decomposed files created by this plugin. See section `Ignore Files`.
40
+ - Updates to the `.gitignore` are optional if you are using this in a git-based repo and can be updated based on what you want to be staged in your repo.
18
41
  - It is recommended that you extensively test this plugin in a sandbox environment on the metadata types for which you wish to use this tool.
19
42
  - Do not change your production/QA pipelines until you have tested this and are happy with the results.
20
43
  - Ensure your deployment pipelines are stable before implementing this plugin.
@@ -32,7 +55,7 @@ The `sf-decomposer` supports 2 commands:
32
55
  - `sf decomposer decompose`
33
56
  - `sf decomposer recompose`
34
57
 
35
- Both commands need to be run somewhere inside your Salesforce DX git repository (root folder is preferred). This plugin will read the `sfdx-project.json` file and process all package directories listed in the file.
58
+ Both commands need to be run somewhere inside your Salesforce DX repository (root folder is preferred). This plugin will look for the `sfdx-project.json` file in the root folder and process all package directories listed in the file.
36
59
 
37
60
  ## `sf decomposer decompose`
38
61
 
@@ -199,6 +222,12 @@ Error (1): Metadata type not found for the given suffix: field.
199
222
 
200
223
  ## Warnings and Logging
201
224
 
225
+ The plugin searches the current working directory for the `sfdx-project.json`, and if it's not found in the current working directory, it will search upwards for it until it hits your root drive. If the `sfdx-project.json` file isn't found, the plugin will fail with:
226
+
227
+ ```
228
+ Error (1): sfdx-project.json not found in any parent directory.
229
+ ```
230
+
202
231
  The package used to decompose and recompose XMLs, `xml-disassembler`, will log errors, and optionally debugging statements, to a log file, `disassemble.log`. This log will be created in the working directory and will be created when running this plugin at all times. If there were no XML decomposing/recomposing errors, this log will simply be empty.
203
232
 
204
233
  By default, this package will only log errors to the file. This plugin will print `xml-disassembler` errors as warnings in the command terminal to allow all other files to be processed.
@@ -217,7 +246,7 @@ General debugging statements in the log file will look like:
217
246
  [2024-03-30T14:28:37.959] [DEBUG] default - Created disassembled file: mock\no-nested-elements\HR_Admin\HR_Admin.permissionset-meta.xml
218
247
  ```
219
248
 
220
- Recommend adding the `disassemble.log` to your `.gitignore` file.
249
+ Recommend adding the `disassemble.log` to your `.gitignore` file if you are using this in a git-based repo.
221
250
 
222
251
  ## Ignore Files when Decomposing
223
252
 
@@ -265,7 +294,7 @@ If the `.sfdecomposer.config.json` file isn't found, the hooks will be skipped.
265
294
 
266
295
  ## Ignore Files
267
296
 
268
- You must update the `.forceignore` to have the Salesforce CLI ignore the decomposed files created by this plugin. Optionally, you can add the recomposed files to your `.gitignore` to avoid staging those in your repoisotry.
297
+ You must update the `.forceignore` to have the Salesforce CLI ignore the decomposed files created by this plugin. Optionally, you can add the recomposed files to your `.gitignore` to avoid staging those in your git-based repository.
269
298
 
270
299
  ### `.forceignore` updates
271
300
 
@@ -318,7 +347,7 @@ The Salesforce CLI should ignore the decomposed files and should allow the recom
318
347
 
319
348
  ### `.gitignore` updates
320
349
 
321
- Git should ignore the recomposed files.
350
+ I recommend having Git (or whatever version control system you are using) ignore the recomposed files so you don't stage those in your repositories.
322
351
 
323
352
  ```
324
353
  # Ignore recomposed files
@@ -344,7 +373,7 @@ Git should ignore the recomposed files.
344
373
  **/marketingappextensions/*.marketingappextension-meta.xml
345
374
  ```
346
375
 
347
- Git should also ignore the log created by the `xml-disassembler` package.
376
+ Your VCS should also ignore the log created by the `xml-disassembler` package.
348
377
 
349
378
  ```
350
379
  disassemble.log
@@ -51,9 +51,9 @@ export default class DecomposerDecompose extends SfCommand {
51
51
  const debug = flags['debug'];
52
52
  const format = flags['format'];
53
53
  for (const metadataType of metadataTypes) {
54
- const metaAttributes = await getRegistryValuesBySuffix(metadataType, 'decompose');
54
+ const { metaAttributes, ignorePath } = await getRegistryValuesBySuffix(metadataType, 'decompose');
55
55
  const currentLogFile = await readOriginalLogFile(LOG_FILE);
56
- await decomposeFileHandler(metaAttributes, prepurge, postpurge, debug, format);
56
+ await decomposeFileHandler(metaAttributes, prepurge, postpurge, debug, format, ignorePath);
57
57
  const decomposeErrors = await checkLogForErrors(LOG_FILE, currentLogFile);
58
58
  if (decomposeErrors.length > 0) {
59
59
  decomposeErrors.forEach((error) => {
@@ -1 +1 @@
1
- {"version":3,"file":"decompose.js","sourceRoot":"","sources":["../../../src/commands/decomposer/decompose.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,qCAAqC;AAErC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EA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AAC,CAAC;YAC3D,MAAM,oBAAoB,CAAC,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;YAC3F,MAAM,eAAe,GAAG,MAAM,iBAAiB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;YAC1E,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC/B,eAAe,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;oBAChC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACnB,CAAC,CAAC,CAAC;YACL,CAAC;YACD,IAAI,CAAC,GAAG,CAAC,kEAAkE,YAAY,EAAE,CAAC,CAAC;QAC7F,CAAC;QACD,OAAO;YACL,QAAQ,EAAE,aAAa;SACxB,CAAC;IACJ,CAAC"}
@@ -45,7 +45,7 @@ export default class DecomposerRecompose extends SfCommand {
45
45
  const debug = flags['debug'];
46
46
  const format = flags['format'];
47
47
  for (const metadataType of metadataTypes) {
48
- const metaAttributes = await getRegistryValuesBySuffix(metadataType, 'recompose');
48
+ const { metaAttributes } = await getRegistryValuesBySuffix(metadataType, 'recompose');
49
49
  const currentLogFile = await readOriginalLogFile(LOG_FILE);
50
50
  await recomposeFileHandler(metaAttributes, postpurge, debug, format);
51
51
  const recomposeErrors = await checkLogForErrors(LOG_FILE, currentLogFile);
@@ -1 +1 @@
1
- {"version":3,"file":"recompose.js","sourceRoot":"","sources":["../../../src/commands/decomposer/recompose.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,qCAAqC;AAErC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAA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EAAkE,YAAY,EAAE,CAAC,CAAC;QAC7F,CAAC;QACD,OAAO;YACL,QAAQ,EAAE,aAAa;SACxB,CAAC;IACJ,CAAC"}
@@ -6,7 +6,10 @@ import { getRepoRoot } from '../service/getRepoRoot.js';
6
6
  export const prerun = async function (options) {
7
7
  if (['project:deploy:validate', 'project:deploy:start'].includes(options.Command.id)) {
8
8
  let configFile;
9
- const repoRoot = await getRepoRoot();
9
+ const { repoRoot } = await getRepoRoot();
10
+ if (!repoRoot) {
11
+ return;
12
+ }
10
13
  const configPath = resolve(repoRoot, '.sfdecomposer.config.json');
11
14
  try {
12
15
  const jsonString = await readFile(configPath, 'utf-8');
@@ -1 +1 @@
1
- {"version":3,"file":"prerun.js","sourceRoot":"","sources":["../../src/hooks/prerun.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAmB,KAAK,WAAW,OAAO;IAC3D,IAAI,CAAC,yBAAyB,EAAE,sBAAsB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;QACrF,IAAI,UAAsB,CAAC;QAC3B,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;QACrC,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;QAElE,IAAI,CAAC;YACH,MAAM,UAAU,GAAW,MAAM,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;YAC/D,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAe,CAAC;QACpD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;Q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7B,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzB,IAAI,SAAS,EAAE,CAAC;YACd,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAClC,CAAC;QACD,MAAM,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC,CAAC"}
@@ -8,7 +8,10 @@ export const scopedPostRetrieve = async function (options) {
8
8
  return;
9
9
  }
10
10
  let configFile;
11
- const repoRoot = await getRepoRoot();
11
+ const { repoRoot } = await getRepoRoot();
12
+ if (!repoRoot) {
13
+ return;
14
+ }
12
15
  const configPath = resolve(repoRoot, '.sfdecomposer.config.json');
13
16
  try {
14
17
  const jsonString = await readFile(configPath, 'utf-8');
@@ -1 +1 @@
1
- {"version":3,"file":"scopedPostRetrieve.js","sourceRoot":"","sources":["../../src/hooks/scopedPostRetrieve.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAKxD,MAAM,CAAC,MAAM,kBAAkB,GAAiB,KAAK,WAAW,OAAO;IACrE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpD,OAAO;IACT,CAAC;IACD,IAAI,UAAsB,CAAC;IAC3B,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;IAElE,IAAI,CAAC;QACH,MAAM,UAAU,GAAW,MAAM,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC/D,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAA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AM,YAAY,IAAI,kBAAkB,EAAE,CAAC;QAC9C,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC7D,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACpC,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAC1C,CAAC;IACD,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7B,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzB,IAAI,QAAQ,EAAE,CAAC;QACb,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACjC,CAAC;IACD,IAAI,SAAS,EAAE,CAAC;QACd,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAClC,CAAC;IACD,MAAM,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAC7C,CAAC,CAAC"}
@@ -1 +1,4 @@
1
- export declare function getPackageDirectories(metaDirectory: string): Promise<string[]>;
1
+ export declare function getPackageDirectories(metaDirectory: string): Promise<{
2
+ metadataPaths: string[];
3
+ ignorePath: string;
4
+ }>;
@@ -1,18 +1,17 @@
1
1
  'use strict';
2
2
  /* eslint-disable no-await-in-loop */
3
- import { existsSync } from 'node:fs';
4
3
  import { resolve, join } from 'node:path';
5
4
  import { readFile, readdir, stat } from 'node:fs/promises';
6
- import { SFDX_PROJECT_FILE_NAME } from '../helpers/constants.js';
7
5
  import { getRepoRoot } from '../service/getRepoRoot.js';
6
+ import { IGNORE_FILE } from '../helpers/constants.js';
8
7
  export async function getPackageDirectories(metaDirectory) {
9
- const repoRoot = await getRepoRoot();
10
- process.chdir(repoRoot);
11
- const dxConfigPath = resolve(repoRoot, SFDX_PROJECT_FILE_NAME);
12
- if (!existsSync(dxConfigPath)) {
13
- throw Error(`Salesforce DX Config File does not exist in this path: ${dxConfigPath}`);
8
+ const { repoRoot, dxConfigFilePath } = await getRepoRoot();
9
+ if (!repoRoot || !dxConfigFilePath) {
10
+ throw new Error('Failed to retrieve repository root or sfdx-project.json path.');
14
11
  }
15
- const sfdxProjectRaw = await readFile(dxConfigPath, 'utf-8');
12
+ process.chdir(repoRoot);
13
+ const ignorePath = resolve(repoRoot, IGNORE_FILE);
14
+ const sfdxProjectRaw = await readFile(dxConfigFilePath, 'utf-8');
16
15
  const sfdxProject = JSON.parse(sfdxProjectRaw);
17
16
  const packageDirectories = sfdxProject.packageDirectories.map((directory) => resolve(repoRoot, directory.path));
18
17
  const metadataPaths = [];
@@ -22,7 +21,7 @@ export async function getPackageDirectories(metaDirectory) {
22
21
  metadataPaths.push(resolve(filePath));
23
22
  }
24
23
  }
25
- return metadataPaths;
24
+ return { metadataPaths, ignorePath };
26
25
  }
27
26
  async function searchRecursively(dxDirectory, subDirectoryName) {
28
27
  const files = await readdir(dxDirectory);
@@ -1 +1 @@
1
- {"version":3,"file":"getPackageDirectories.js","sourceRoot":"","sources":["../../src/metadata/getPackageDirectories.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,qCAAqC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,aAAqB;IAC/D,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACxB,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC;IAC/D,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CA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,SAAS,IAAI,kBAAkB,EAAE,CAAC;QAC3C,MAAM,QAAQ,GAAuB,MAAM,iBAAiB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACvF,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;IACD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC;AACvC,CAAC;AAED,KAAK,UAAU,iBAAiB,CAAC,WAAmB,EAAE,gBAAwB;IAC5E,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnC,IAAI,KAAK,CAAC,WAAW,EAAE,IAAI,IAAI,KAAK,gBAAgB,EAAE,CAAC;YACrD,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;YACnE,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO,MAAM,CAAC;YAChB,CAAC;QACH,CAAC;aAAM,IAAI,KAAK,CAAC,WAAW,EAAE,IAAI,IAAI,KAAK,gBAAgB,EAAE,CAAC;YAC5D,OAAO,QAAQ,CAAC;QAClB,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,2 +1,5 @@
1
1
  import { MetaAttributes } from '../helpers/types.js';
2
- export declare function getRegistryValuesBySuffix(metaSuffix: string, command: string): Promise<MetaAttributes>;
2
+ export declare function getRegistryValuesBySuffix(metaSuffix: string, command: string): Promise<{
3
+ metaAttributes: MetaAttributes;
4
+ ignorePath: string;
5
+ }>;
@@ -21,7 +21,7 @@ export async function getRegistryValuesBySuffix(metaSuffix, command) {
21
21
  let uniqueIdElements;
22
22
  if (command === 'decompose')
23
23
  uniqueIdElements = await getUniqueIdElements(metaSuffix);
24
- const metadataPaths = await getPackageDirectories(`${metadataTypeEntry.directoryName}`);
24
+ const { metadataPaths, ignorePath } = await getPackageDirectories(`${metadataTypeEntry.directoryName}`);
25
25
  if (metadataPaths.length === 0)
26
26
  throw Error(`No directories named ${metadataTypeEntry.directoryName} were found in any package directory.`);
27
27
  const metaAttributes = {
@@ -33,6 +33,6 @@ export async function getRegistryValuesBySuffix(metaSuffix, command) {
33
33
  ? `${DEFAULT_UNIQUE_ID_ELEMENTS},${uniqueIdElements}`
34
34
  : DEFAULT_UNIQUE_ID_ELEMENTS,
35
35
  };
36
- return metaAttributes;
36
+ return { metaAttributes, ignorePath };
37
37
  }
38
38
  //# sourceMappingURL=getRegistryValuesBySuffix.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRegistryValuesBySuffix.js","sourceRoot":"","sources":["../../src/metadata/getRegistryValuesBySuffix.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,cAAc,EAAgB,MAAM,oCAAoC,CAAC;AAElF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,UAAkB,EAAE,OAAe;IACjF,IAAI,UAAU,KAAK,QAAQ,EAAE,CAAC;QAC5B,MAAM,KAAK,CAAC,kDAAkD,CAAC,CAAC;IAClE,CAAC;IACD,IAAI,UAAU,KAAK,YAAY,EAAE,CAAC;QAChC,MAAM,KAAK,CACT,4GAA4G,CAC7G,CAAC;IACJ,CAAC;IACD,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC;IAC5C,MAAM,iBAAiB,GAA6B,cAAc,CAAC,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AAM,cAAc,GAAG;QACrB,UAAU,EAAE,iBAAiB,CAAC,MAAgB;QAC9C,mBAAmB,EAAE,iBAAiB,CAAC,mBAA8B;QACrE,UAAU,EAAE,iBAAiB,CAAC,UAAoB;QAClD,aAAa;QACb,gBAAgB,EAAE,gBAAgB;YAChC,CAAC,CAAC,GAAG,0BAA0B,IAAI,gBAAgB,EAAE;YACrD,CAAC,CAAC,0BAA0B;KAC/B,CAAC;IACF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC;AACxC,CAAC"}
@@ -4,4 +4,4 @@ export declare function decomposeFileHandler(metaAttributes: {
4
4
  strictDirectoryName: boolean;
5
5
  folderType: string;
6
6
  uniqueIdElements: string;
7
- }, prepurge: boolean, postpurge: boolean, debug: boolean, format: string): Promise<void>;
7
+ }, prepurge: boolean, postpurge: boolean, debug: boolean, format: string, ignorePath: string): Promise<void>;
@@ -5,16 +5,15 @@ import { readdir, stat, rm, rename } from 'node:fs/promises';
5
5
  import { DisassembleXMLFileHandler, setLogLevel } from 'xml-disassembler';
6
6
  import { XmlToYamlDisassembler } from 'xml2yaml-disassembler';
7
7
  import { XmlToJsonDisassembler } from 'xml2json-disassembler';
8
- import { CUSTOM_LABELS_FILE, IGNORE_FILE } from '../helpers/constants.js';
8
+ import { CUSTOM_LABELS_FILE } from '../helpers/constants.js';
9
9
  import { moveFiles } from './moveFiles.js';
10
- import { getRepoRoot } from './getRepoRoot.js';
11
- export async function decomposeFileHandler(metaAttributes, prepurge, postpurge, debug, format) {
10
+ export async function decomposeFileHandler(metaAttributes, prepurge, postpurge, debug, format, ignorePath) {
12
11
  const { metadataPaths, metaSuffix, strictDirectoryName, folderType, uniqueIdElements } = metaAttributes;
13
12
  if (debug)
14
13
  setLogLevel('debug');
15
14
  for (const metadataPath of metadataPaths) {
16
15
  if (strictDirectoryName || folderType) {
17
- await subDirectoryHandler(metadataPath, uniqueIdElements, prepurge, postpurge, format);
16
+ await subDirectoryHandler(metadataPath, uniqueIdElements, prepurge, postpurge, format, ignorePath);
18
17
  }
19
18
  else if (metaSuffix === 'labels') {
20
19
  // do not use the prePurge flag in the xml-disassembler package for labels due to file moving
@@ -22,16 +21,16 @@ export async function decomposeFileHandler(metaAttributes, prepurge, postpurge,
22
21
  await prePurgeLabels(metadataPath);
23
22
  const absoluteLabelFilePath = resolve(metadataPath, CUSTOM_LABELS_FILE);
24
23
  const relativeLabelFilePath = relative(process.cwd(), absoluteLabelFilePath);
25
- await disassembleHandler(relativeLabelFilePath, uniqueIdElements, false, postpurge, format);
24
+ await disassembleHandler(relativeLabelFilePath, uniqueIdElements, false, postpurge, format, ignorePath);
26
25
  // move labels from the directory they are created in
27
26
  await moveAndRenameLabels(metadataPath, format);
28
27
  }
29
28
  else {
30
- await disassembleHandler(metadataPath, uniqueIdElements, prepurge, postpurge, format);
29
+ await disassembleHandler(metadataPath, uniqueIdElements, prepurge, postpurge, format, ignorePath);
31
30
  }
32
31
  }
33
32
  }
34
- async function disassembleHandler(filePath, uniqueIdElements, prePurge, postPurge, format) {
33
+ async function disassembleHandler(filePath, uniqueIdElements, prePurge, postPurge, format, ignorePath) {
35
34
  let handler;
36
35
  if (format === 'yaml') {
37
36
  handler = new XmlToYamlDisassembler();
@@ -42,8 +41,6 @@ async function disassembleHandler(filePath, uniqueIdElements, prePurge, postPurg
42
41
  else {
43
42
  handler = new DisassembleXMLFileHandler();
44
43
  }
45
- const repoRoot = await getRepoRoot();
46
- const ignorePath = resolve(repoRoot, IGNORE_FILE);
47
44
  await handler.disassemble({
48
45
  filePath,
49
46
  uniqueIdElements,
@@ -76,12 +73,12 @@ async function moveAndRenameLabels(metadataPath, format) {
76
73
  await moveFiles(sourceDirectory, destinationDirectory, () => true);
77
74
  await rm(join(metadataPath, 'CustomLabels'), { recursive: true });
78
75
  }
79
- async function subDirectoryHandler(metadataPath, uniqueIdElements, prepurge, postpurge, format) {
76
+ async function subDirectoryHandler(metadataPath, uniqueIdElements, prepurge, postpurge, format, ignorePath) {
80
77
  const subFiles = await readdir(metadataPath);
81
78
  for (const subFile of subFiles) {
82
79
  const subFilePath = join(metadataPath, subFile);
83
80
  if ((await stat(subFilePath)).isDirectory()) {
84
- await disassembleHandler(subFilePath, uniqueIdElements, prepurge, postpurge, format);
81
+ await disassembleHandler(subFilePath, uniqueIdElements, prepurge, postpurge, format, ignorePath);
85
82
  }
86
83
  }
87
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"decomposeFileHandler.js","sourceRoot":"","sources":["../../src/service/decomposeFileHandler.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,qCAAqC;AACrC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,cAMC,EACD,QAAiB,EACjB,SAAkB,EAClB,KAAc,EACd,MAAc;IAEd,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,mBAAmB,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,cAAc,CAAC;IACxG,IAAI,KAAK;QAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAEhC,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;QACzC,IAAI,mBAAmB,IAAI,UAAU,EAAE,CAAC;YACtC,MAAM,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EAAE,IAAI,CAAC,CAAC;YAChD,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,MAAM,EAAE,EAAE,eAAe,MAAM,EAAE,CAAC,CAAC;YACpF,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;YAC5D,MAAM,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IACD,MAAM,SAAS,CAAC,eAAe,EAAE,oBAAoB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACnE,MAAM,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AACpE,CAAC;AAED,KAAK,UAAU,mBAAmB,CAChC,YAAoB,EACpB,gBAAwB,EACxB,QAAiB,EACjB,SAAkB,EAClB,MAAc,EACd,UAAkB;IAElB,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7C,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;YAC5C,MAAM,kBAAkB,CAAC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QACnG,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1 +1,4 @@
1
- export declare function getRepoRoot(): Promise<string>;
1
+ export declare function getRepoRoot(): Promise<{
2
+ repoRoot: string | undefined;
3
+ dxConfigFilePath: string | undefined;
4
+ }>;
@@ -1,12 +1,32 @@
1
1
  'use strict';
2
- import { promises as fsPromises, readFile, stat, readdir } from 'node:fs';
3
- import git from 'isomorphic-git';
2
+ /* eslint-disable no-await-in-loop */
3
+ import { access } from 'node:fs/promises';
4
+ import { join, dirname } from 'node:path';
5
+ import { SFDX_PROJECT_FILE_NAME } from '../helpers/constants.js';
4
6
  export async function getRepoRoot() {
5
- const fs = { promises: fsPromises, readFile, stat, readdir };
6
- const repoRoot = await git.findRoot({
7
- fs,
8
- filepath: process.cwd(),
9
- });
10
- return repoRoot;
7
+ let currentDir = process.cwd();
8
+ let found = false;
9
+ let dxConfigFilePath;
10
+ let repoRoot;
11
+ do {
12
+ const filePath = join(currentDir, SFDX_PROJECT_FILE_NAME);
13
+ try {
14
+ // Check if sfdx-project.json exists in the current directory
15
+ await access(filePath);
16
+ dxConfigFilePath = filePath;
17
+ repoRoot = currentDir;
18
+ found = true;
19
+ }
20
+ catch {
21
+ // If file not found, move up one directory level
22
+ const parentDir = dirname(currentDir);
23
+ if (currentDir === parentDir) {
24
+ // Reached the root without finding the file, throw an error
25
+ throw new Error('sfdx-project.json not found in any parent directory.');
26
+ }
27
+ currentDir = parentDir;
28
+ }
29
+ } while (!found);
30
+ return { repoRoot, dxConfigFilePath };
11
31
  }
12
32
  //# sourceMappingURL=getRepoRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRepoRoot.js","sourceRoot":"","sources":["../../src/service/getRepoRoot.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,GAAG,MAAM,gBAAgB,CAAC;AAEjC,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC7D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC;QAClC,EAAE;QACF,QAAQ,EAAE,OAAO,CAAC,GAAG,EAAE;KACxB,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"getRepoRoot.js","sourceRoot":"","sources":["../../src/service/getRepoRoot.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,qCAAqC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,IAAI,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAC/B,IAAI,KAAK,GAAG,KAAK,CAAC;IAClB,IAAI,gBAAoC,CAAC;IACzC,IAAI,QAA4B,CAAC;IAEjC,GAAG,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAC;QAE1D,IAAI,CAAC;YACH,6DAA6D;YAC7D,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC;YACvB,gBAAgB,GAAG,QAAQ,CAAC;YAC5B,QAAQ,GAAG,UAAU,CAAC;YACtB,KAAK,GAAG,IAAI,CAAC;QACf,CAAC;QAAC,MAAM,CAAC;YACP,iDAAiD;YACjD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;YACtC,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;gBAC7B,4DAA4D;gBAC5D,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;YAC1E,CAAC;YACD,UAAU,GAAG,SAAS,CAAC;QACzB,CAAC;IACH,CAAC,QAAQ,CAAC,KAAK,EAAE;IACjB,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;AACxC,CAAC"}
package/oclif.lock CHANGED
@@ -2810,11 +2810,6 @@ ast-types@^0.13.4:
2810
2810
  dependencies:
2811
2811
  tslib "^2.0.1"
2812
2812
 
2813
- async-lock@^1.4.1:
2814
- version "1.4.1"
2815
- resolved "https://registry.yarnpkg.com/async-lock/-/async-lock-1.4.1.tgz#56b8718915a9b68b10fce2f2a9a3dddf765ef53f"
2816
- integrity sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ==
2817
-
2818
2813
  async-retry@^1.3.3:
2819
2814
  version "1.3.3"
2820
2815
  resolved "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz"
@@ -3140,11 +3135,6 @@ ci-info@^4.0.0:
3140
3135
  resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-4.0.0.tgz#65466f8b280fc019b9f50a5388115d17a63a44f2"
3141
3136
  integrity sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg==
3142
3137
 
3143
- clean-git-ref@^2.0.1:
3144
- version "2.0.1"
3145
- resolved "https://registry.yarnpkg.com/clean-git-ref/-/clean-git-ref-2.0.1.tgz#dcc0ca093b90e527e67adb5a5e55b1af6816dcd9"
3146
- integrity sha512-bLSptAy2P0s6hU4PzuIMKmMJJSE6gLXGH1cntDu7bWJUksvuM+7ReOK61mozULErYvP6a15rnYl0zFDef+pyPw==
3147
-
3148
3138
  clean-regexp@^1.0.0:
3149
3139
  version "1.0.0"
3150
3140
  resolved "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz"
@@ -3382,11 +3372,6 @@ cosmiconfig@^8.0.0, cosmiconfig@^8.3.6:
3382
3372
  parse-json "^5.2.0"
3383
3373
  path-type "^4.0.0"
3384
3374
 
3385
- crc-32@^1.2.0:
3386
- version "1.2.2"
3387
- resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.2.tgz#3cad35a934b8bf71f25ca524b6da51fb7eace2ff"
3388
- integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==
3389
-
3390
3375
  create-require@^1.1.0:
3391
3376
  version "1.1.1"
3392
3377
  resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz"
@@ -3550,11 +3535,6 @@ detect-newline@^4.0.0:
3550
3535
  resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-4.0.1.tgz#fcefdb5713e1fb8cb2839b8b6ee22e6716ab8f23"
3551
3536
  integrity sha512-qE3Veg1YXzGHQhlA6jzebZN2qVf6NX+A7m7qlhCGG30dJixrAQhYOsJjsnBjJkCSmuOPpCk30145fr8FV0bzog==
3552
3537
 
3553
- diff3@0.0.3:
3554
- version "0.0.3"
3555
- resolved "https://registry.yarnpkg.com/diff3/-/diff3-0.0.3.tgz#d4e5c3a4cdf4e5fe1211ab42e693fcb4321580fc"
3556
- integrity sha512-iSq8ngPOt0K53A6eVr4d5Kn6GNrM2nQZtC740pzIriHtn4pOQ2lyzEXQMBeVcWERN0ye7fhBsk9PbLLQOnUx/g==
3557
-
3558
3538
  diff@^4.0.1, diff@^4.0.2:
3559
3539
  version "4.0.2"
3560
3540
  resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz"
@@ -4792,7 +4772,7 @@ ieee754@^1.2.1:
4792
4772
  resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz"
4793
4773
  integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
4794
4774
 
4795
- ignore@^5.1.4, ignore@^5.2.0, ignore@^5.2.4, ignore@^5.3.0, ignore@^5.3.1, ignore@^5.3.2:
4775
+ ignore@^5.2.0, ignore@^5.2.4, ignore@^5.3.0, ignore@^5.3.1, ignore@^5.3.2:
4796
4776
  version "5.3.2"
4797
4777
  resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
4798
4778
  integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==
@@ -5104,23 +5084,6 @@ isexe@^2.0.0:
5104
5084
  resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"
5105
5085
  integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
5106
5086
 
5107
- isomorphic-git@^1.27.1:
5108
- version "1.27.1"
5109
- resolved "https://registry.yarnpkg.com/isomorphic-git/-/isomorphic-git-1.27.1.tgz#a2752fce23a09f04baa590c41cfaf61e973405b3"
5110
- integrity sha512-X32ph5zIWfT75QAqW2l3JCIqnx9/GWd17bRRehmn3qmWc34OYbSXY6Cxv0o9bIIY+CWugoN4nQFHNA+2uYf2nA==
5111
- dependencies:
5112
- async-lock "^1.4.1"
5113
- clean-git-ref "^2.0.1"
5114
- crc-32 "^1.2.0"
5115
- diff3 "0.0.3"
5116
- ignore "^5.1.4"
5117
- minimisted "^2.0.0"
5118
- pako "^1.0.10"
5119
- pify "^4.0.1"
5120
- readable-stream "^3.4.0"
5121
- sha.js "^2.4.9"
5122
- simple-get "^4.0.1"
5123
-
5124
5087
  istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0:
5125
5088
  version "3.2.0"
5126
5089
  resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz"
@@ -5805,18 +5768,11 @@ minimist-options@4.1.0:
5805
5768
  is-plain-obj "^1.1.0"
5806
5769
  kind-of "^6.0.3"
5807
5770
 
5808
- minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.5, minimist@^1.2.6:
5771
+ minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.6:
5809
5772
  version "1.2.8"
5810
5773
  resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz"
5811
5774
  integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
5812
5775
 
5813
- minimisted@^2.0.0:
5814
- version "2.0.1"
5815
- resolved "https://registry.yarnpkg.com/minimisted/-/minimisted-2.0.1.tgz#d059fb905beecf0774bc3b308468699709805cb1"
5816
- integrity sha512-1oPjfuLQa2caorJUM8HV8lGgWCc0qqAO1MNv/k05G4qslmsndV/5WdNZrqCiyqiz3wohia2Ij2B7w2Dr7/IyrA==
5817
- dependencies:
5818
- minimist "^1.2.5"
5819
-
5820
5776
  "minipass@^5.0.0 || ^6.0.2 || ^7.0.0":
5821
5777
  version "7.0.4"
5822
5778
  resolved "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz"
@@ -6220,7 +6176,7 @@ package-hash@^4.0.0:
6220
6176
  lodash.flattendeep "^4.4.0"
6221
6177
  release-zalgo "^1.0.0"
6222
6178
 
6223
- pako@^1.0.10, pako@~1.0.2:
6179
+ pako@~1.0.2:
6224
6180
  version "1.0.11"
6225
6181
  resolved "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz"
6226
6182
  integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==
@@ -6349,11 +6305,6 @@ picomatch@^3.0.1:
6349
6305
  resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-3.0.1.tgz#817033161def55ec9638567a2f3bbc876b3e7516"
6350
6306
  integrity sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==
6351
6307
 
6352
- pify@^4.0.1:
6353
- version "4.0.1"
6354
- resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"
6355
- integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==
6356
-
6357
6308
  pino-abstract-transport@^1.0.0:
6358
6309
  version "1.1.0"
6359
6310
  resolved "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz"
@@ -6886,14 +6837,6 @@ setimmediate@^1.0.5:
6886
6837
  resolved "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz"
6887
6838
  integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==
6888
6839
 
6889
- sha.js@^2.4.9:
6890
- version "2.4.11"
6891
- resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7"
6892
- integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==
6893
- dependencies:
6894
- inherits "^2.0.1"
6895
- safe-buffer "^5.0.1"
6896
-
6897
6840
  shebang-command@^2.0.0:
6898
6841
  version "2.0.0"
6899
6842
  resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz"
@@ -6950,20 +6893,6 @@ signal-exit@^4.0.1, signal-exit@^4.1.0:
6950
6893
  resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz"
6951
6894
  integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
6952
6895
 
6953
- simple-concat@^1.0.0:
6954
- version "1.0.1"
6955
- resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.1.tgz#f46976082ba35c2263f1c8ab5edfe26c41c9552f"
6956
- integrity sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==
6957
-
6958
- simple-get@^4.0.1:
6959
- version "4.0.1"
6960
- resolved "https://registry.yarnpkg.com/simple-get/-/simple-get-4.0.1.tgz#4a39db549287c979d352112fa03fd99fd6bc3543"
6961
- integrity sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==
6962
- dependencies:
6963
- decompress-response "^6.0.0"
6964
- once "^1.3.1"
6965
- simple-concat "^1.0.0"
6966
-
6967
6896
  sinon@10.0.0:
6968
6897
  version "10.0.0"
6969
6898
  resolved "https://registry.npmjs.org/sinon/-/sinon-10.0.0.tgz"
@@ -7157,16 +7086,7 @@ streamroller@^3.1.5:
7157
7086
  debug "^4.3.4"
7158
7087
  fs-extra "^8.1.0"
7159
7088
 
7160
- "string-width-cjs@npm:string-width@^4.2.0":
7161
- version "4.2.3"
7162
- resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
7163
- integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
7164
- dependencies:
7165
- emoji-regex "^8.0.0"
7166
- is-fullwidth-code-point "^3.0.0"
7167
- strip-ansi "^6.0.1"
7168
-
7169
- string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
7089
+ "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
7170
7090
  version "4.2.3"
7171
7091
  resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
7172
7092
  integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -7234,14 +7154,7 @@ string_decoder@^1.3.0:
7234
7154
  dependencies:
7235
7155
  safe-buffer "~5.2.0"
7236
7156
 
7237
- "strip-ansi-cjs@npm:strip-ansi@^6.0.1":
7238
- version "6.0.1"
7239
- resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
7240
- integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
7241
- dependencies:
7242
- ansi-regex "^5.0.1"
7243
-
7244
- strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
7157
+ "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
7245
7158
  version "6.0.1"
7246
7159
  resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
7247
7160
  integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -7811,7 +7724,7 @@ workerpool@^6.5.1:
7811
7724
  resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544"
7812
7725
  integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==
7813
7726
 
7814
- "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
7727
+ "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
7815
7728
  version "7.0.0"
7816
7729
  resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
7817
7730
  integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -7829,15 +7742,6 @@ wrap-ansi@^6.2.0:
7829
7742
  string-width "^4.1.0"
7830
7743
  strip-ansi "^6.0.0"
7831
7744
 
7832
- wrap-ansi@^7.0.0:
7833
- version "7.0.0"
7834
- resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
7835
- integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
7836
- dependencies:
7837
- ansi-styles "^4.0.0"
7838
- string-width "^4.1.0"
7839
- strip-ansi "^6.0.0"
7840
-
7841
7745
  wrap-ansi@^8.1.0:
7842
7746
  version "8.1.0"
7843
7747
  resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz"
@@ -178,5 +178,5 @@
178
178
  ]
179
179
  }
180
180
  },
181
- "version": "5.0.1"
181
+ "version": "5.1.0"
182
182
  }
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "sf-decomposer",
3
3
  "description": "Decomposes Salesforce metadata into more manageable files.",
4
- "version": "5.0.1",
4
+ "version": "5.1.0",
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
9
  "@salesforce/source-deploy-retrieve": "^12.7.3",
10
10
  "fs-extra": "^11.2.0",
11
- "isomorphic-git": "^1.27.1",
12
11
  "xml-disassembler": "^1.3.2",
13
12
  "xml2json-disassembler": "^1.1.1",
14
13
  "xml2yaml-disassembler": "^1.1.1"
@@ -34,7 +33,8 @@
34
33
  "/lib",
35
34
  "/messages",
36
35
  "/oclif.manifest.json",
37
- "/oclif.lock"
36
+ "/oclif.lock",
37
+ "/CHANGELOG.md"
38
38
  ],
39
39
  "keywords": [
40
40
  "force",
@@ -51,6 +51,11 @@
51
51
  "commands": "./lib/commands",
52
52
  "bin": "sf",
53
53
  "topicSeparator": " ",
54
+ "topics": {
55
+ "decomposer": {
56
+ "description": "description for decomposer"
57
+ }
58
+ },
54
59
  "devPlugins": [
55
60
  "@oclif/plugin-help"
56
61
  ],
@@ -66,7 +71,7 @@
66
71
  "clean": "sf-clean",
67
72
  "clean-all": "sf-clean all",
68
73
  "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json oclif.lock",
69
- "compile": "sf-compile",
74
+ "compile": "wireit",
70
75
  "docs": "sf-docs",
71
76
  "format": "sf-format",
72
77
  "lint": "wireit",