@ds-sfdc/sfparty 1.3.3 → 1.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ds-sfdc/sfparty",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Salesforce metadata XML splitter for CI/CD",
5
5
  "type": "module",
6
6
  "repository": {
@@ -130,7 +130,9 @@ export class Combine {
130
130
  function processStart(that) {
131
131
  let success = getXML(that)
132
132
  if (success) {
133
- if (!that.metadataDefinition.packageTypeIsDirectory) that.#addPkg.addMember(that.#root, that.#fileName.shortName)
133
+ if (!that.metadataDefinition.packageTypeIsDirectory && global.git.enabled) {
134
+ that.#addPkg.addMember(that.#root, that.#fileName.shortName)
135
+ }
134
136
  saveXML(that)
135
137
  if (global.git.enabled) savePackageXML(that)
136
138
  return true
@@ -143,7 +145,9 @@ export class Combine {
143
145
  .replace('[%5]', that.#fileName.shortName)
144
146
  )
145
147
  logUpdate.done()
146
- if (!that.metadataDefinition.packageTypeIsDirectory) that.#desPkg.addMember(that.#root, that.#fileName.shortName)
148
+ if (!that.metadataDefinition.packageTypeIsDirectory && global.git.enabled) {
149
+ that.#desPkg.addMember(that.#root, that.#fileName.shortName)
150
+ }
147
151
  deleteFile(that.#fileName.fullName)
148
152
  if (global.git.enabled) savePackageXML(that)
149
153
  return 'deleted'
@@ -270,7 +274,9 @@ export class Combine {
270
274
  }
271
275
 
272
276
  if (that.metadataDefinition.packageTypeIsDirectory) {
273
- that.#desPkg.addMember(that.#root, fileObj.shortName.replace(`.${global.format}`, ''))
277
+ if (global.git.enabled) {
278
+ that.#desPkg.addMember(that.#root, fileObj.shortName.replace(`.${global.format}`, ''))
279
+ }
274
280
  }
275
281
  return true
276
282
  }
@@ -313,7 +319,9 @@ export class Combine {
313
319
 
314
320
  if (that.metadataDefinition.packageTypeIsDirectory) {
315
321
  if (fileObj.fullName !== path.join(that.sourceDir, that.metaDir, `main.${global.format}`)) {
316
- that.#addPkg.addMember(that.#root, fileObj.shortName.replace(`.${global.format}`, ''))
322
+ if (global.git.enabled) {
323
+ that.#addPkg.addMember(that.#root, fileObj.shortName.replace(`.${global.format}`, ''))
324
+ }
317
325
  }
318
326
  }
319
327