sf-decomposer 5.0.1 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,446 @@
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.1](https://github.com/mcarvin8/sf-decomposer/compare/v5.1.0...v5.1.1) (2024-11-01)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** bump @salesforce/source-deploy-retrieve ([aeb5d48](https://github.com/mcarvin8/sf-decomposer/commit/aeb5d486807d3b8e49c331f89d02a6787c5aad4a))
14
+
15
+ ## [5.1.0](https://github.com/mcarvin8/sf-decomposer/compare/v5.0.1...v5.1.0) (2024-10-28)
16
+
17
+
18
+ ### Features
19
+
20
+ * remove dependency on git repos ([39e83db](https://github.com/mcarvin8/sf-decomposer/commit/39e83db06b428373c52e0e5305073127b7668f2f))
21
+
22
+ ## [5.0.1](https://github.com/mcarvin8/sf-decomposer/compare/v5.0.0...v5.0.1) (2024-10-09)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * rename decomposed labels in yaml and json format with `label` suffix ([c95ed2d](https://github.com/mcarvin8/sf-decomposer/commit/c95ed2d1d8b71e2baa4d502dd03dd63256c0da27))
28
+
29
+ ## [5.0.0](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.8...v5.0.0) (2024-10-04)
30
+
31
+
32
+ ### ⚠ BREAKING CHANGES
33
+
34
+ * rename decomposed labels to align with salesforce's decomposed labels
35
+
36
+ ### Features
37
+
38
+ * rename decomposed labels to align with salesforce's decomposed labels ([90bc332](https://github.com/mcarvin8/sf-decomposer/commit/90bc332fb4998fcce8adbda283d4e3532a2922e2))
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * **deps:** bump @salesforce/source-deploy-retrieve from 12.1.8 to 12.7.3 ([ae0e188](https://github.com/mcarvin8/sf-decomposer/commit/ae0e1888e84be2988ad1d0e10bb61999cd26f2d5))
44
+
45
+ ## [4.1.8](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.7...v4.1.8) (2024-07-28)
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * switch to isomorphic-git ([e483bef](https://github.com/mcarvin8/sf-decomposer/commit/e483bef0c6b007e66e7915fb4701d622fb00302c))
51
+
52
+ ## [4.1.7](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.6...v4.1.7) (2024-07-27)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * upgrade sf-plugins-core ([0119f34](https://github.com/mcarvin8/sf-decomposer/commit/0119f34d7bf3bc6c2f072e091fdb89e4e41265e4))
58
+
59
+ ## [4.1.6](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.5...v4.1.6) (2024-07-27)
60
+
61
+
62
+ ### Bug Fixes
63
+
64
+ * add unique ID element for loyaltyProgramSetup ([1c72ac9](https://github.com/mcarvin8/sf-decomposer/commit/1c72ac94a8472c6855280cd92e3a8ac4f01739cf))
65
+ * upgrade salesforce dependencies ([b813332](https://github.com/mcarvin8/sf-decomposer/commit/b8133320160c76ffc4f42cc2d6577a3b18912dd6))
66
+
67
+ ## [4.1.5](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.4...v4.1.5) (2024-06-14)
68
+
69
+
70
+ ### Bug Fixes
71
+
72
+ * cleaner warning message ([4e22408](https://github.com/mcarvin8/sf-decomposer/commit/4e22408006cdaa733e9cf5565ea5e4a38909cf9b))
73
+
74
+ ## [4.1.4](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.3...v4.1.4) (2024-06-12)
75
+
76
+ ### Bug Fixes
77
+
78
+ - switch Node working directory to repo root folder ([fa2f0bb](https://github.com/mcarvin8/sf-decomposer/commit/fa2f0bb91b45e28887ec958bc4924e8bbb33d468))
79
+
80
+ ## [4.1.3](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.2...v4.1.3) (2024-05-22)
81
+
82
+ ### Bug Fixes
83
+
84
+ - fix logger warning for ignore file path ([6e790da](https://github.com/mcarvin8/sf-decomposer/commit/6e790daad05f933311377a6bf8e268f461b4b4c4))
85
+
86
+ ## [4.1.2](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.1...v4.1.2) (2024-05-22)
87
+
88
+ ### Bug Fixes
89
+
90
+ - rename ignore file to `.sfdecomposerignore` ([de5260a](https://github.com/mcarvin8/sf-decomposer/commit/de5260a58ee0e9d28bbd40330486193ce18d35ed))
91
+
92
+ ## [4.1.1](https://github.com/mcarvin8/sf-decomposer/compare/v4.1.0...v4.1.1) (2024-05-22)
93
+
94
+ ### Bug Fixes
95
+
96
+ - post disclaimer to state this plugin must be ran in the root folder ([5ba6bf5](https://github.com/mcarvin8/sf-decomposer/commit/5ba6bf5039cbb04f596191810fae98d807eb6934))
97
+
98
+ # [4.1.0](https://github.com/mcarvin8/sf-decomposer/compare/v4.0.1...v4.1.0) (2024-05-22)
99
+
100
+ ### Features
101
+
102
+ - process an ignore file when decomposing ([f7d72f7](https://github.com/mcarvin8/sf-decomposer/commit/f7d72f75846a603d10d5c1cb40edc4bd4cec5691))
103
+
104
+ ## [4.0.1](https://github.com/mcarvin8/sf-decomposer/compare/v4.0.0...v4.0.1) (2024-04-30)
105
+
106
+ ### Bug Fixes
107
+
108
+ - add project deploy prerun hook for recompose command ([c073993](https://github.com/mcarvin8/sf-decomposer/commit/c073993b55aee1146c52e0cc76d62f36a58647e1))
109
+
110
+ # [4.0.0](https://github.com/mcarvin8/sf-decomposer/compare/v3.3.10...v4.0.0) (2024-04-29)
111
+
112
+ ### Features
113
+
114
+ - rename package to `sf-decomposer` ([f03134d](https://github.com/mcarvin8/sf-decomposer/commit/f03134d723e9f693ec305833a62fc1a9aff79026))
115
+
116
+ ### BREAKING CHANGES
117
+
118
+ - renamed from `sfdx-decomposer` to `sf-decomposer`
119
+
120
+ ## [3.3.10](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.9...v3.3.10) (2024-04-29)
121
+
122
+ ### Bug Fixes
123
+
124
+ - deprecate this package. this will be renamed to `sf-decomposer`. ([1305913](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/1305913cfe558cc13859d3269b5b737e91e11460))
125
+
126
+ ## [3.3.9](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.8...v3.3.9) (2024-04-29)
127
+
128
+ ### Bug Fixes
129
+
130
+ - rename hook JSON to `.sfdecomposer.config.json` ([ecb6140](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/ecb6140eb56818272b1c5e9aaf7a61ece09e411b))
131
+
132
+ ## [3.3.8](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.7...v3.3.8) (2024-04-29)
133
+
134
+ ### Bug Fixes
135
+
136
+ - read a new JSON file for post retrieve hook variables ([7a2b39f](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/7a2b39f54c992e541aed67465bce38dc220fc1a9))
137
+
138
+ ## [3.3.7](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.6...v3.3.7) (2024-04-29)
139
+
140
+ ### Bug Fixes
141
+
142
+ - add env variable for decomposed file format to post retrieve hook ([5c22ef9](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/5c22ef9a3d2d4bca7615bcc55cc6ea6b50e9e689))
143
+
144
+ ## [3.3.6](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.5...v3.3.6) (2024-04-29)
145
+
146
+ ### Bug Fixes
147
+
148
+ - fix postpurge hook name in readme ([9c3a9b7](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9c3a9b73670f899a878fe32a6b92e0942864e369))
149
+
150
+ ## [3.3.5](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.4...v3.3.5) (2024-04-29)
151
+
152
+ ### Bug Fixes
153
+
154
+ - add post retrieve hook to run decompose command ([64ede9e](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/64ede9e9da4fca403b538161b04ff379adc57508))
155
+
156
+ ## [3.3.4](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.3...v3.3.4) (2024-04-24)
157
+
158
+ ### Bug Fixes
159
+
160
+ - fix promises in commands ([02f1470](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/02f14709445ff7abb4d21318cfe66228f5a02946))
161
+
162
+ ## [3.3.3](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.2...v3.3.3) (2024-04-24)
163
+
164
+ ### Bug Fixes
165
+
166
+ - allow `--metadata-type` to be declared multiple times in a command ([e4d489a](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e4d489a7e6d12b7f9ff1bc1d335c0fe0ef3cda8f))
167
+ - upgrade disassemblers ([d1cc730](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/d1cc7306e4dd30f10976a1ac8982cdbda739659c))
168
+
169
+ ## [3.3.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.1...v3.3.2) (2024-04-24)
170
+
171
+ ### Bug Fixes
172
+
173
+ - upgrade disassemblers to fix multi-line leaf content sorting ([d9e4672](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/d9e46729186d5f33c97e89972306413f6d52a224))
174
+
175
+ ## [3.3.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.3.0...v3.3.1) (2024-04-23)
176
+
177
+ ### Bug Fixes
178
+
179
+ - use `simple-git` to get `sfdx-project.json` path, remove `--sfdx-configuration` flag ([9bfe341](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9bfe3410da98db1316211eb5acde920fac569981))
180
+
181
+ # [3.3.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.2.3...v3.3.0) (2024-04-17)
182
+
183
+ ### Features
184
+
185
+ - allow decomposed files to be XMLs, JSONs, or YAMLs ([0256e68](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/0256e68b82bd2aae36f5ac64aeb405f9dabb3d68))
186
+
187
+ ## [3.2.3](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.2.2...v3.2.3) (2024-04-08)
188
+
189
+ ### Bug Fixes
190
+
191
+ - log xml disassembler errors as warnings when running both commands ([117cf60](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/117cf606683f2e96fe22d7c6170b5ac170070402))
192
+
193
+ ## [3.2.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.2.1...v3.2.2) (2024-04-08)
194
+
195
+ ### Bug Fixes
196
+
197
+ - add `--postpurge` flag to recompose, refactor imports, upgrade disassembler ([ee8a52b](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/ee8a52bcf3368737406a7fb60db09180b5e4da9a))
198
+
199
+ ## [3.2.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.2.0...v3.2.1) (2024-04-07)
200
+
201
+ ### Bug Fixes
202
+
203
+ - fix leaf file indenting by upgrading xml disassembler ([ed170f8](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/ed170f8df1aad761981107c4ddad130ec7fe2caa))
204
+
205
+ # [3.2.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.1...v3.2.0) (2024-04-02)
206
+
207
+ ### Bug Fixes
208
+
209
+ - **deps:** bump @oclif/core from 3.19.4 to 3.26.0 ([437a306](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/437a3060fb583f71a83a69d3695bc589bee19f3c))
210
+ - **deps:** bump @salesforce/source-deploy-retrieve from 10.5.2 to 10.7.1 ([8b26d08](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/8b26d08d015d7bd6f7bd0eba9ee5fc0272b25ede))
211
+
212
+ ### Features
213
+
214
+ - read `sfdx-project.json` for directories and process multiple directories in a command ([518243d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/518243d19b833f71127fa956487b5a208983897d))
215
+
216
+ # [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)
217
+
218
+ ### Features
219
+
220
+ - read `sfdx-project.json` for directories and process multiple directories in a command ([518243d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/518243d19b833f71127fa956487b5a208983897d))
221
+
222
+ ## [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)
223
+
224
+ ### Bug Fixes
225
+
226
+ - **deps:** bump @oclif/core from 3.19.4 to 3.26.0 ([437a306](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/437a3060fb583f71a83a69d3695bc589bee19f3c))
227
+
228
+ ## [3.1.2-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.1...v3.1.2-beta.1) (2024-04-01)
229
+
230
+ ### Bug Fixes
231
+
232
+ - **deps:** bump @salesforce/source-deploy-retrieve from 10.5.2 to 10.7.1 ([8b26d08](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/8b26d08d015d7bd6f7bd0eba9ee5fc0272b25ede))
233
+
234
+ ## [3.1.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.0...v3.1.1) (2024-03-15)
235
+
236
+ ### Bug Fixes
237
+
238
+ - load json using fs ([54f4853](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/54f4853375861dfa26a07f6c7aed7a8ebde688f3))
239
+ - readd `resolveJsonModule` to tsconfig.json ([9532e2f](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9532e2f8d3c862811e753ccaaec1d9a1f084c499))
240
+ - update @salesforce/source-deploy-retrieve ([d48871d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/d48871d37c57f1fa017b7a9fed11e914018e1ba1))
241
+
242
+ ## [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)
243
+
244
+ ### Bug Fixes
245
+
246
+ - readd `resolveJsonModule` to tsconfig.json ([9532e2f](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9532e2f8d3c862811e753ccaaec1d9a1f084c499))
247
+
248
+ ## [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)
249
+
250
+ ### Bug Fixes
251
+
252
+ - load json using fs ([54f4853](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/54f4853375861dfa26a07f6c7aed7a8ebde688f3))
253
+
254
+ ## [3.1.1-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.1.0...v3.1.1-beta.1) (2024-03-14)
255
+
256
+ ### Bug Fixes
257
+
258
+ - update @salesforce/source-deploy-retrieve ([d48871d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/d48871d37c57f1fa017b7a9fed11e914018e1ba1))
259
+
260
+ # [3.1.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.0.2...v3.1.0) (2024-03-12)
261
+
262
+ ### Bug Fixes
263
+
264
+ - only disassemble the original custom labels file ([1d6d502](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/1d6d502767331a15d0dd89e1daef8081c21f55bd))
265
+
266
+ ### Features
267
+
268
+ - rename `purge` flag to `prepurge` and add `postpurge` flag ([2fd7ff6](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/2fd7ff64c4bb9e261732675fb4b609e13400e830))
269
+
270
+ # [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)
271
+
272
+ ### Bug Fixes
273
+
274
+ - only disassemble the original custom labels file ([1d6d502](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/1d6d502767331a15d0dd89e1daef8081c21f55bd))
275
+
276
+ ### Features
277
+
278
+ - rename `purge` flag to `prepurge` and add `postpurge` flag ([2fd7ff6](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/2fd7ff64c4bb9e261732675fb4b609e13400e830))
279
+
280
+ ## [3.0.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.0.1...v3.0.2) (2024-03-07)
281
+
282
+ ### Bug Fixes
283
+
284
+ - upgrade xml-disassembler to ensure consistent sorting in recomposed files on linux ([4230f95](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/4230f955b18bf5f50d861ade67b82d2e336b0d22))
285
+
286
+ ## [3.0.2-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.0.1...v3.0.2-beta.1) (2024-03-07)
287
+
288
+ ### Bug Fixes
289
+
290
+ - upgrade xml-disassembler to ensure consistent sorting in recomposed files on linux ([4230f95](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/4230f955b18bf5f50d861ade67b82d2e336b0d22))
291
+
292
+ ## [3.0.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v3.0.0...v3.0.1) (2024-02-24)
293
+
294
+ ### Bug Fixes
295
+
296
+ - delete empty custom label temp directory created during recompose process ([f27c211](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/f27c211c51c96be4b6b10ff55207ec761ad6c7a2))
297
+
298
+ # [3.0.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.2.0...v3.0.0) (2024-02-24)
299
+
300
+ ### Bug Fixes
301
+
302
+ - 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))
303
+
304
+ ### Features
305
+
306
+ - add xml-disassembler package ([e5f6173](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e5f6173ea9dce4600e3544baf523406869486c0e))
307
+
308
+ ### BREAKING CHANGES
309
+
310
+ - Decompose files will need to be re-generated.
311
+
312
+ # [2.2.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.5...v2.2.0) (2024-02-18)
313
+
314
+ ### Features
315
+
316
+ - expand supported metadata types to the majority of metadata types supported by SDR ([02fb119](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/02fb119dae4b1c02a29f92149844368e3f543527))
317
+
318
+ ## [2.1.5](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.4...v2.1.5) (2024-02-17)
319
+
320
+ ### Bug Fixes
321
+
322
+ - if root element key is an array of leaf elements, add to leaf file ([3259d85](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/3259d855e89d495d34d4847ac21ba6f54f62db82))
323
+
324
+ ## [2.1.4](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.3...v2.1.4) (2024-02-16)
325
+
326
+ ### Bug Fixes
327
+
328
+ - fix how decompose sets unique id elements ([2a0d78a](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/2a0d78ab0a066253ae64c46628c1728c4512205d))
329
+
330
+ ## [2.1.3](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.2...v2.1.3) (2024-02-15)
331
+
332
+ ### Bug Fixes
333
+
334
+ - use short SHA-256 hash if no unique ID elements are found ([4ac65a0](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/4ac65a04e0f51859e9a7ae93509fe4497d13543b))
335
+
336
+ ## [2.1.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.1...v2.1.2) (2024-02-14)
337
+
338
+ ### Bug Fixes
339
+
340
+ - resolve lint issues on buildNestedElements ([e1bd33d](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e1bd33d7e3a2e4c06bc3742faf0c1f56ac9c3f2d))
341
+
342
+ ## [2.1.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.1.0...v2.1.1) (2024-02-14)
343
+
344
+ ### Bug Fixes
345
+
346
+ - adjust comment prop name to allow comments in translations ([e3d9279](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e3d9279d77757eea630997f113da4042bc68f332))
347
+
348
+ # [2.1.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.0.2...v2.1.0) (2024-02-14)
349
+
350
+ ### Features
351
+
352
+ - add marketing app extensions and CDATA support ([38d6941](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/38d694184054b1caa35d9c9a04fd8448d69258fd))
353
+
354
+ ## [2.0.2](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.0.1...v2.0.2) (2024-02-14)
355
+
356
+ ### Bug Fixes
357
+
358
+ - links in readme ([e7351d3](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/e7351d32ac1627f7a51b611fd8f4f134fffdb765))
359
+
360
+ ## [2.0.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v2.0.0...v2.0.1) (2024-02-14)
361
+
362
+ ### Bug Fixes
363
+
364
+ - **deps:** bump @salesforce/sf-plugins-core from 7.1.3 to 7.1.9 ([7b48afc](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/7b48afc50060449c7ffbc9d02a005ead19df4c69))
365
+
366
+ # [2.0.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.1...v2.0.0) (2024-02-11)
367
+
368
+ ### Bug Fixes
369
+
370
+ - **deps:** bump @salesforce/core from 6.5.1 to 6.5.3 ([0eff76c](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/0eff76c57039b697d9eaf9a482b24f90b8485399))
371
+ - **deps:** bump fast-xml-parser from 4.3.3 to 4.3.4 ([654d939](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/654d9397d6d1c49557c673151898f0a380676c5c))
372
+
373
+ ### Features
374
+
375
+ - rename compose command ([6a7002e](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/6a7002e44f0b5c4d5cfd137e80673c3423f2fb2d))
376
+
377
+ ### BREAKING CHANGES
378
+
379
+ - rename 'compose' command to 'recompose'
380
+
381
+ # [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)
382
+
383
+ ### Features
384
+
385
+ - rename compose command ([6a7002e](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/6a7002e44f0b5c4d5cfd137e80673c3423f2fb2d))
386
+
387
+ ### BREAKING CHANGES
388
+
389
+ - rename 'compose' command to 'recompose'
390
+
391
+ ## [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)
392
+
393
+ ### Bug Fixes
394
+
395
+ - **deps:** bump @salesforce/core from 6.5.1 to 6.5.3 ([0eff76c](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/0eff76c57039b697d9eaf9a482b24f90b8485399))
396
+
397
+ ## [1.1.2-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.1...v1.1.2-beta.1) (2024-02-11)
398
+
399
+ ### Bug Fixes
400
+
401
+ - **deps:** bump fast-xml-parser from 4.3.3 to 4.3.4 ([654d939](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/654d9397d6d1c49557c673151898f0a380676c5c))
402
+
403
+ ## [1.1.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.0...v1.1.1) (2024-02-06)
404
+
405
+ ### Bug Fixes
406
+
407
+ - add logging from salesforce core ([3f80ca8](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/3f80ca8f9675f1306d88fbb4ae20ded0d624b5c8))
408
+
409
+ ## [1.1.1-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.1.0...v1.1.1-beta.1) (2024-02-06)
410
+
411
+ ### Bug Fixes
412
+
413
+ - add logging from salesforce core ([3f80ca8](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/3f80ca8f9675f1306d88fbb4ae20ded0d624b5c8))
414
+
415
+ # [1.1.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v1.0.0...v1.1.0) (2024-02-02)
416
+
417
+ ### Features
418
+
419
+ - import SDR for metadata types ([9b7b08a](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/9b7b08a13c22e36ea4b7a0b3f0dee50da03ff77a))
420
+
421
+ # [1.0.0](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v0.1.1...v1.0.0) (2024-01-31)
422
+
423
+ ### Features
424
+
425
+ - beta release ([808e88c](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/808e88cbb5b25cf1bdc6076286448ffd0753aa52))
426
+ - trigger new beta release with async updates ([81e6792](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/81e6792e249a54e2a701a3f73706a7ba72e68e8f))
427
+
428
+ ### BREAKING CHANGES
429
+
430
+ - beta
431
+
432
+ # [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)
433
+
434
+ ### Features
435
+
436
+ - trigger new beta release with async updates ([81e6792](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/81e6792e249a54e2a701a3f73706a7ba72e68e8f))
437
+
438
+ # [1.0.0-beta.1](https://github.com/mcarvin8/sfdx-decomposer-plugin/compare/v0.1.1...v1.0.0-beta.1) (2024-01-30)
439
+
440
+ ### Features
441
+
442
+ - beta release ([808e88c](https://github.com/mcarvin8/sfdx-decomposer-plugin/commit/808e88cbb5b25cf1bdc6076286448ffd0753aa52))
443
+
444
+ ### BREAKING CHANGES
445
+
446
+ - beta
package/README.md CHANGED
@@ -2,7 +2,30 @@
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
+ - [Why Use This Plugin?](#why-use-this-plugin)
11
+ - [Commands](#commands)
12
+ - [`sf decomposer decompose`](#sf-decomposer-decompose)
13
+ - [`sf decomposer recompose`](#sf-decomposer-recompose)
14
+ - [Supported Metadata](#supported-metadata)
15
+ - [Metadata Exceptions](#metadata-exceptions)
16
+ - [Warnings and Logging](#warnings-and-logging)
17
+ - [Ignore Files when Decomposing](#ignore-files-when-decomposing)
18
+ - [Hooks](#hooks)
19
+ - [Ignore Files](#ignore-files)
20
+ - [`.forceignore` updates](#.forceignore-updates)
21
+ - [`.gitignore` updates](#.gitignore-updates)
22
+ - [Contributing](#contributing)
23
+ - [Unique ID Elements](#unique-id-elements)
24
+ - [Issues](#issues)
25
+ - [License](#license)
26
+ </details>
27
+
28
+ 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
29
 
7
30
  This will parse and retain the following in the original XMLs:
8
31
 
@@ -14,7 +37,8 @@ The decomposed file format can be XML, JSON, or YAML. Based on testing, XML and
14
37
 
15
38
  **DISCLAIMERS:**
16
39
 
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.
40
+ - You must update the `.forceignore` to have the Salesforce CLI ignore the decomposed files created by this plugin. See section `Ignore Files`.
41
+ - 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
42
  - 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
43
  - Do not change your production/QA pipelines until you have tested this and are happy with the results.
20
44
  - Ensure your deployment pipelines are stable before implementing this plugin.
@@ -25,6 +49,15 @@ The decomposed file format can be XML, JSON, or YAML. Based on testing, XML and
25
49
  sf plugins install sf-decomposer@x.y.z
26
50
  ```
27
51
 
52
+ ## Why Use this Plugin?
53
+
54
+ Why should you consider using this Salesforce CLI Plugin over Salesforce's decomposition:
55
+
56
+ - Salesforce's decomposition betas are evaluated for each metadata type before they are considered. My plugin already supports the vast majority of Salesforce metadata types available from the Metadata API.
57
+ - Salesforce's decomposition is all or nothing for each metadata type. Meaning, if you want to decompose workflows, all of your workflows will need to be decomposed to work with Salesforce's approach. My plugin allows you to selectively decompose for each metadata type.
58
+ - See [Ignore Files when Decomposing](#ignore-files-when-decomposing)
59
+ - Some metadata types may only be partially decomposed by Salesforce such as permission sets based on what designs are picked. My plugin will allow for total decomposition. So if a user wants to fully decompose permission sets, they can use this plugin.
60
+
28
61
  ## Commands
29
62
 
30
63
  The `sf-decomposer` supports 2 commands:
@@ -32,7 +65,7 @@ The `sf-decomposer` supports 2 commands:
32
65
  - `sf decomposer decompose`
33
66
  - `sf decomposer recompose`
34
67
 
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.
68
+ 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
69
 
37
70
  ## `sf decomposer decompose`
38
71
 
@@ -199,6 +232,12 @@ Error (1): Metadata type not found for the given suffix: field.
199
232
 
200
233
  ## Warnings and Logging
201
234
 
235
+ 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:
236
+
237
+ ```
238
+ Error (1): sfdx-project.json not found in any parent directory.
239
+ ```
240
+
202
241
  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
242
 
204
243
  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 +256,7 @@ General debugging statements in the log file will look like:
217
256
  [2024-03-30T14:28:37.959] [DEBUG] default - Created disassembled file: mock\no-nested-elements\HR_Admin\HR_Admin.permissionset-meta.xml
218
257
  ```
219
258
 
220
- Recommend adding the `disassemble.log` to your `.gitignore` file.
259
+ Recommend adding the `disassemble.log` to your `.gitignore` file if you are using this in a git-based repo.
221
260
 
222
261
  ## Ignore Files when Decomposing
223
262
 
@@ -265,7 +304,7 @@ If the `.sfdecomposer.config.json` file isn't found, the hooks will be skipped.
265
304
 
266
305
  ## Ignore Files
267
306
 
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.
307
+ 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
308
 
270
309
  ### `.forceignore` updates
271
310
 
@@ -318,7 +357,7 @@ The Salesforce CLI should ignore the decomposed files and should allow the recom
318
357
 
319
358
  ### `.gitignore` updates
320
359
 
321
- Git should ignore the recomposed files.
360
+ 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
361
 
323
362
  ```
324
363
  # Ignore recomposed files
@@ -344,7 +383,7 @@ Git should ignore the recomposed files.
344
383
  **/marketingappextensions/*.marketingappextension-meta.xml
345
384
  ```
346
385
 
347
- Git should also ignore the log created by the `xml-disassembler` package.
386
+ Your VCS should also ignore the log created by the `xml-disassembler` package.
348
387
 
349
388
  ```
350
389
  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,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5F,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,eAAe,EAAE,sBAAsB,CAAC,CAAC;AAEhF,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,SAA2B;IACnE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAC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AC,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,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5F,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,eAAe,EAAE,sBAAsB,CAAC,CAAC;AAEhF,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,SAA2B;IACnE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,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C,CAAC;QACxD,MAAM,aAAa,GAAG,KAAK,CAAC,eAAe,CAAC,CAAC;QAC7C,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;QACrC,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QAC7B,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC/B,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;YACzC,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,yBAAyB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;YAEtF,MAAM,cAAc,GAAG,MAAM,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YAC3D,MAAM,oBAAoB,CAAC,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;YACrE,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"}
@@ -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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AAO,CAAC,CAAC;YAC/D,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAe,CAAC;QACpD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;QACT,CAAC;QAED,MAAM,aAAa,GAAW,UAAU,CAAC,gBAAgB,IAAI,GAAG,CAAC;QACjE,MAAM,MAAM,GAAW,UAAU,CAAC,gBAAgB,IAAI,KAAK,CAAC;QAC5D,MAAM,SAAS,GAAY,UAAU,CAAC,SAAS,IAAI,KAAK,CAAC;QAEzD,IAAI,aAAa,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;YACjC,OAAO;QACT,CAAC;QAED,MAAM,kBAAkB,GAAa,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAE9D,MAAM,WAAW,GAAa,EAAE,CAAC;QACjC,KAAK,MAAM,YAAY,IAAI,kBAAkB,EAAE,CAAC;YAC9C,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC7D,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YACpC,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QAC1C,CAAC;QACD,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7B,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,UAAU,CAAe,CAAC;IACpD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;IACT,CAAC;IAED,MAAM,aAAa,GAAW,UAAU,CAAC,gBAAgB,IAAI,GAAG,CAAC;IACjE,MAAM,MAAM,GAAW,UAAU,CAAC,gBAAgB,IAAI,KAAK,CAAC;IAC5D,MAAM,QAAQ,GAAY,UAAU,CAAC,QAAQ,IAAI,KAAK,CAAC;IACvD,MAAM,SAAS,GAAY,UAAU,CAAC,SAAS,IAAI,KAAK,CAAC;IAEzD,IAAI,aAAa,CAAC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;QACjC,OAAO;IACT,CAAC;IAED,MA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C;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,CAAC;QAC9B,MAAM,KAAK,CAAC,0DAA0D,YAAY,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,MAAM,cAAc,GAAW,MAAM,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACrE,MAAM,WAAW,GAAgB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAgB,CAAC;IAC3E,MAAM,kBAAkB,GAAG,WAAW,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAChH,MAAM,aAAa,GAAa,EAAE,CAAC;IACnC,KAA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C;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,eAAe,CAAC,UAAU,CAAC,CAAC;IAC/F,IAAI,iBAAiB,KAAK,SAAS;QAAE,MAAM,KAAK,CAAC,iDAAiD,UAAU,GAAG,CAAC,CAAC;IAEjH,IACE,iBAAiB,CAAC,UAAU,EAAE,OAAO;QACrC,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAC7E,iBAAiB,CAAC,UAAU,CAAC,OAAO,CACrC,EACD,CAAC;QACD,MAAM,KAAK,CACT,uBAAuB,iBAAiB,CAAC,UAAU,CAAC,OAAO,+CAA+C,CAC3G,CAAC;IACJ,CAAC;IAED,IAAI,gBAAoC,C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
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,E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AC,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
@@ -1376,10 +1376,10 @@
1376
1376
  "@jridgewell/resolve-uri" "^3.0.3"
1377
1377
  "@jridgewell/sourcemap-codec" "^1.4.10"
1378
1378
 
1379
- "@jsforce/jsforce-node@^3.4.1":
1380
- version "3.5.1"
1381
- resolved "https://registry.yarnpkg.com/@jsforce/jsforce-node/-/jsforce-node-3.5.1.tgz#f350e8c3897cce42f6b1cdbfc437c1c66aa13dd2"
1382
- integrity sha512-P+pfsLL6AddDeBP3iswjlB1+YM4w2ZsWTqunGjMA0/Aj8Jt4gA+XycV+fGEbGzsm6DvSvbZUnyrfkRYNsT9F8Q==
1379
+ "@jsforce/jsforce-node@^3.6.1":
1380
+ version "3.6.2"
1381
+ resolved "https://registry.yarnpkg.com/@jsforce/jsforce-node/-/jsforce-node-3.6.2.tgz#5d8509aaeb161f1d6658e4ce737948a04d3ce3a6"
1382
+ integrity sha512-bBWRCZl4kVRnYLHRSzl4piqowM3GeTW2yBoKo+WnMGAw36uGjyMq/9z9yAaA+0AmpHFaI4po7/0PrAMdEU/AGA==
1383
1383
  dependencies:
1384
1384
  "@sindresorhus/is" "^4"
1385
1385
  base64url "^3.0.1"
@@ -1390,7 +1390,6 @@
1390
1390
  https-proxy-agent "^5.0.0"
1391
1391
  multistream "^3.1.0"
1392
1392
  node-fetch "^2.6.1"
1393
- strip-ansi "^6.0.0"
1394
1393
  xml2js "^0.6.2"
1395
1394
 
1396
1395
  "@nodelib/fs.scandir@2.1.5":
@@ -1501,12 +1500,12 @@
1501
1500
  strip-ansi "6.0.1"
1502
1501
  ts-retry-promise "^0.8.1"
1503
1502
 
1504
- "@salesforce/core@^8.1.1", "@salesforce/core@^8.2.1", "@salesforce/core@^8.2.3", "@salesforce/core@^8.6.1":
1505
- version "8.6.1"
1506
- resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.6.1.tgz#180c489447190632cf48364a077510989fc1dea2"
1507
- integrity sha512-bOS6YIjk3IFzFtZcQXUIbJQ740Gh6EyzlcvoBpDpFA5eaz5ZrS0dO1e0rU6Gn4V1FZkvt84gQXA5G1M8tTNKVw==
1503
+ "@salesforce/core@^8.1.1", "@salesforce/core@^8.2.1", "@salesforce/core@^8.2.3", "@salesforce/core@^8.6.2":
1504
+ version "8.6.4"
1505
+ resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.6.4.tgz#39a8234c816ff644e11bcef9517411495ec6039a"
1506
+ integrity sha512-ubksHYBjjv1zfU8Xv3ylzCVftIftBrh682r6PNMzH/LgRcSo8+u4Tgib0d14d85kcIb2ElonV2wPpnbpS+2Aww==
1508
1507
  dependencies:
1509
- "@jsforce/jsforce-node" "^3.4.1"
1508
+ "@jsforce/jsforce-node" "^3.6.1"
1510
1509
  "@salesforce/kit" "^3.2.2"
1511
1510
  "@salesforce/schemas" "^1.9.0"
1512
1511
  "@salesforce/ts-types" "^2.0.10"
@@ -1597,12 +1596,12 @@
1597
1596
  string-width "^7.2.0"
1598
1597
  terminal-link "^3.0.0"
1599
1598
 
1600
- "@salesforce/source-deploy-retrieve@^12.7.3":
1601
- version "12.7.3"
1602
- resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.7.3.tgz#03e14fc44be423a52b3df35796bcfa8916494cfe"
1603
- integrity sha512-hnaU4maxxHYc7B2fBKNevXjBJqTOdOqXIRhIHypeC1OMuUGYT6hchAxRIYGYaG+LEQ8Af4QG7t4zx3nJZuXV2Q==
1599
+ "@salesforce/source-deploy-retrieve@^12.10.0":
1600
+ version "12.10.0"
1601
+ resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.0.tgz#406b596bf73b3c4aa733ef2302b88c3b4f7367b2"
1602
+ integrity sha512-06/yhu2HcaFnAV5Wyrt/flDBvGGVWgl2G/XZxTguLjwD35jc3fRLv2qk121eq+FLdKpeLo/WXjicA7UX/dXkeQ==
1604
1603
  dependencies:
1605
- "@salesforce/core" "^8.6.1"
1604
+ "@salesforce/core" "^8.6.2"
1606
1605
  "@salesforce/kit" "^3.2.2"
1607
1606
  "@salesforce/ts-types" "^2.0.12"
1608
1607
  fast-levenshtein "^3.0.0"
@@ -2810,11 +2809,6 @@ ast-types@^0.13.4:
2810
2809
  dependencies:
2811
2810
  tslib "^2.0.1"
2812
2811
 
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
2812
  async-retry@^1.3.3:
2819
2813
  version "1.3.3"
2820
2814
  resolved "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz"
@@ -3140,11 +3134,6 @@ ci-info@^4.0.0:
3140
3134
  resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-4.0.0.tgz#65466f8b280fc019b9f50a5388115d17a63a44f2"
3141
3135
  integrity sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg==
3142
3136
 
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
3137
  clean-regexp@^1.0.0:
3149
3138
  version "1.0.0"
3150
3139
  resolved "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz"
@@ -3382,11 +3371,6 @@ cosmiconfig@^8.0.0, cosmiconfig@^8.3.6:
3382
3371
  parse-json "^5.2.0"
3383
3372
  path-type "^4.0.0"
3384
3373
 
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
3374
  create-require@^1.1.0:
3391
3375
  version "1.1.1"
3392
3376
  resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz"
@@ -3550,11 +3534,6 @@ detect-newline@^4.0.0:
3550
3534
  resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-4.0.1.tgz#fcefdb5713e1fb8cb2839b8b6ee22e6716ab8f23"
3551
3535
  integrity sha512-qE3Veg1YXzGHQhlA6jzebZN2qVf6NX+A7m7qlhCGG30dJixrAQhYOsJjsnBjJkCSmuOPpCk30145fr8FV0bzog==
3552
3536
 
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
3537
  diff@^4.0.1, diff@^4.0.2:
3559
3538
  version "4.0.2"
3560
3539
  resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz"
@@ -4792,7 +4771,7 @@ ieee754@^1.2.1:
4792
4771
  resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz"
4793
4772
  integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
4794
4773
 
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:
4774
+ ignore@^5.2.0, ignore@^5.2.4, ignore@^5.3.0, ignore@^5.3.1, ignore@^5.3.2:
4796
4775
  version "5.3.2"
4797
4776
  resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
4798
4777
  integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==
@@ -5104,23 +5083,6 @@ isexe@^2.0.0:
5104
5083
  resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"
5105
5084
  integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
5106
5085
 
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
5086
  istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0:
5125
5087
  version "3.2.0"
5126
5088
  resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz"
@@ -5805,18 +5767,11 @@ minimist-options@4.1.0:
5805
5767
  is-plain-obj "^1.1.0"
5806
5768
  kind-of "^6.0.3"
5807
5769
 
5808
- minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.5, minimist@^1.2.6:
5770
+ minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.6:
5809
5771
  version "1.2.8"
5810
5772
  resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz"
5811
5773
  integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
5812
5774
 
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
5775
  "minipass@^5.0.0 || ^6.0.2 || ^7.0.0":
5821
5776
  version "7.0.4"
5822
5777
  resolved "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz"
@@ -6220,7 +6175,7 @@ package-hash@^4.0.0:
6220
6175
  lodash.flattendeep "^4.4.0"
6221
6176
  release-zalgo "^1.0.0"
6222
6177
 
6223
- pako@^1.0.10, pako@~1.0.2:
6178
+ pako@~1.0.2:
6224
6179
  version "1.0.11"
6225
6180
  resolved "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz"
6226
6181
  integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==
@@ -6349,11 +6304,6 @@ picomatch@^3.0.1:
6349
6304
  resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-3.0.1.tgz#817033161def55ec9638567a2f3bbc876b3e7516"
6350
6305
  integrity sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==
6351
6306
 
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
6307
  pino-abstract-transport@^1.0.0:
6358
6308
  version "1.1.0"
6359
6309
  resolved "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz"
@@ -6886,14 +6836,6 @@ setimmediate@^1.0.5:
6886
6836
  resolved "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz"
6887
6837
  integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==
6888
6838
 
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
6839
  shebang-command@^2.0.0:
6898
6840
  version "2.0.0"
6899
6841
  resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz"
@@ -6950,20 +6892,6 @@ signal-exit@^4.0.1, signal-exit@^4.1.0:
6950
6892
  resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz"
6951
6893
  integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
6952
6894
 
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
6895
  sinon@10.0.0:
6968
6896
  version "10.0.0"
6969
6897
  resolved "https://registry.npmjs.org/sinon/-/sinon-10.0.0.tgz"
@@ -178,5 +178,5 @@
178
178
  ]
179
179
  }
180
180
  },
181
- "version": "5.0.1"
181
+ "version": "5.1.1"
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.1",
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.7.3",
9
+ "@salesforce/source-deploy-retrieve": "^12.10.0",
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",