@ds-sfdc/sfparty 1.4.2 → 1.4.3

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.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Salesforce metadata XML splitter for CI/CD",
5
5
  "type": "module",
6
6
  "repository": {
@@ -4,6 +4,7 @@ export const metadataDefinition = {
4
4
  directory: 'labels',
5
5
  filetype: 'labels',
6
6
  root: 'CustomLabels',
7
+ type: 'CustomLabel',
7
8
  alias: 'label',
8
9
  main: ['$'],
9
10
  singleFiles: [],
@@ -4,6 +4,7 @@ export const metadataDefinition = {
4
4
  directory: 'permissionsets',
5
5
  filetype: 'permissionset',
6
6
  root: 'PermissionSet',
7
+ type: 'PermissionSet',
7
8
  alias: 'permset',
8
9
  main: [
9
10
  'label',
@@ -4,6 +4,7 @@ export const metadataDefinition = {
4
4
  directory: 'profiles',
5
5
  filetype: 'profile',
6
6
  root: 'Profile',
7
+ type: 'Profile',
7
8
  alias: 'profile',
8
9
  main: ['fullName', 'custom', 'description', 'userLicense', '$'],
9
10
  singleFiles: [
@@ -4,6 +4,7 @@ export const metadataDefinition = {
4
4
  directory: 'workflows',
5
5
  filetype: 'workflow',
6
6
  root: 'Workflow',
7
+ type: 'Workflow',
7
8
  alias: 'workflow',
8
9
  main: ['$'],
9
10
  singleFiles: [],
@@ -6,7 +6,6 @@ import cliSpinners from 'cli-spinners'
6
6
  import fs from 'fs'
7
7
  import * as xml2js from 'xml2js'
8
8
  import * as fileUtils from '../lib/fileUtils.js'
9
- import * as packageUtil from '../lib/packageUtil.js'
10
9
 
11
10
  const spinner = cliSpinners['dots']
12
11
  const processed = {
@@ -156,7 +155,7 @@ export class Combine {
156
155
  ) {
157
156
  if (!that.#delta || that.#addedFiles.length > 0) {
158
157
  that.addPkg.addMember(
159
- that.#root,
158
+ that.metadataDefinition.type,
160
159
  that.#fileName.shortName,
161
160
  )
162
161
  }
@@ -164,7 +163,7 @@ export class Combine {
164
163
  // only include the workflow node if main part file is delete
165
164
  if (that.#delta && that.#mainDeleted) {
166
165
  that.desPkg.addMember(
167
- that.#root,
166
+ that.metadataDefinition.type,
168
167
  that.#fileName.shortName,
169
168
  )
170
169
  }
@@ -195,7 +194,10 @@ export class Combine {
195
194
  !that.metadataDefinition.packageTypeIsDirectory &&
196
195
  global.git.enabled
197
196
  ) {
198
- that.desPkg.addMember(that.#root, that.#fileName.shortName)
197
+ that.desPkg.addMember(
198
+ that.metadataDefinition.type,
199
+ that.#fileName.shortName,
200
+ )
199
201
  }
200
202
  deleteFile(that, that.#fileName.fullName)
201
203
  return 'deleted'
@@ -443,7 +445,7 @@ export class Combine {
443
445
  that.metadataDefinition.packageTypeIsDirectory
444
446
  ) {
445
447
  that.desPkg.addMember(
446
- that.#root,
448
+ that.metadataDefinition.type,
447
449
  fileObj.shortName.replace(`.${global.format}`, ''),
448
450
  )
449
451
  }
@@ -524,7 +526,7 @@ export class Combine {
524
526
  )
525
527
  } else if (that.metadataDefinition.packageTypeIsDirectory) {
526
528
  that.addPkg.addMember(
527
- that.#root,
529
+ that.metadataDefinition.type,
528
530
  fileObj.shortName.replace(`.${global.format}`, ''),
529
531
  )
530
532
  }