@salesforce/packaging 4.26.0 → 4.26.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.
@@ -99,7 +99,10 @@ class PackageProfileApi extends kit_1.AsyncCreatable {
99
99
  }
100
100
  // Look for profiles in all package directories
101
101
  findAllProfiles(excludedDirectories = []) {
102
- const ignore = excludedDirectories.map((dir) => `**/${dir.split(node_path_1.default.sep).join(node_path_1.default.posix.sep)}/**`);
102
+ const ignore = excludedDirectories.map((dir) => {
103
+ const normalized = node_path_1.default.normalize(dir).split(node_path_1.default.sep).filter(Boolean).join(node_path_1.default.posix.sep);
104
+ return `**/${normalized}/**`;
105
+ });
103
106
  const patterns = this.project
104
107
  .getUniquePackageDirectories()
105
108
  .map((pDir) => pDir.fullPath)
@@ -455,10 +455,11 @@ class PackageVersionCreate {
455
455
  packageXmlAsJson.types;
456
456
  // Next generate profiles and retrieve any profiles that were excluded because they had no matching nodes.
457
457
  const excludedProfiles = this.options?.profileApi?.generateProfiles(packageVersProfileFolder, typesArr, profileExcludeDirs);
458
+ const excludedProfileNames = excludedProfiles?.map((p) => node_path_1.default.basename(p));
458
459
  packageXmlAsJson.types = typesArr.map((type) => {
459
460
  if (type.name !== 'Profile')
460
461
  return type;
461
- return { ...type, members: type.members.filter((m) => !excludedProfiles?.includes(m)) };
462
+ return { ...type, members: type.members.filter((m) => !excludedProfileNames?.includes(m)) };
462
463
  });
463
464
  const xml = (0, exports.packageXmlJsonToXmlString)(packageXmlAsJson);
464
465
  await node_fs_1.default.promises.writeFile(node_path_1.default.join(packageVersMetadataFolder, 'package.xml'), xml, 'utf-8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/packaging",
3
- "version": "4.26.0",
3
+ "version": "4.26.1",
4
4
  "description": "Packaging library for the Salesforce packaging platform",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -43,7 +43,7 @@
43
43
  ],
44
44
  "dependencies": {
45
45
  "@jsforce/jsforce-node": "^3.10.16",
46
- "@salesforce/core": "^8.31.1",
46
+ "@salesforce/core": "^8.31.2",
47
47
  "@salesforce/kit": "^3.2.6",
48
48
  "@salesforce/schemas": "^1.10.3",
49
49
  "@salesforce/source-deploy-retrieve": "^12.36.2",