Skip to content

Commit 17b1a11

Browse files
authored
Merge branch 'main' into phale/decompose-esr
2 parents 1f7d429 + f2b53e1 commit 17b1a11

File tree

7 files changed

+36
-4
lines changed

7 files changed

+36
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# [12.13.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/12.12.4...12.13.0) (2025-01-22)
2+
3+
4+
### Features
5+
6+
* sf cmd support for lightning type bundle ([#1487](https://github.com/forcedotcom/source-deploy-retrieve/issues/1487)) ([0821764](https://github.com/forcedotcom/source-deploy-retrieve/commit/082176475dfb73096e3b0d70dbeb988788ae6845))
7+
8+
9+
110
## [12.12.4](https://github.com/forcedotcom/source-deploy-retrieve/compare/12.12.3...12.12.4) (2025-01-21)
211

312
## [12.12.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/12.12.2...12.12.3) (2025-01-10)

METADATA_SUPPORT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ v63 introduces the following new types. Here's their current level of support
680680
| RelatedRecordAccessDef || Not supported, but support could be added |
681681
| TransactionProcessingType || Not supported, but support could be added (but not for tracking) |
682682

683+
683684
## Additional Types
684685

685686
> The following types are supported by this library but not in the coverage reports for either version. These are typically

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@salesforce/source-deploy-retrieve",
3-
"version": "12.12.4",
3+
"version": "12.13.0",
44
"description": "JavaScript library to run Salesforce metadata deploys and retrieves",
55
"main": "lib/src/index.js",
66
"author": "Salesforce",

scripts/update-registry/describe.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4931,5 +4931,13 @@
49314931
"inFolder": false,
49324932
"metaFile": false,
49334933
"hasChildren": false
4934+
},
4935+
"LightningTypeBundle": {
4936+
"name": "LightningTypeBundle",
4937+
"directoryName": "lightningTypes",
4938+
"suffix": "lightningType",
4939+
"inFolder": false,
4940+
"metaFile": false,
4941+
"hasChildren": false
49344942
}
49354943
}

src/registry/metadataRegistry.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"sites": "customsite",
6666
"staticresources": "staticresource",
6767
"waveTemplates": "wavetemplatebundle",
68-
"appTemplates": "appframeworktemplatebundle"
68+
"appTemplates": "appframeworktemplatebundle",
69+
"lightningTypes": "lightningtypebundle"
6970
},
7071
"suffixes": {
7172
"Canvas": "canvasmetadata",
@@ -4744,6 +4745,18 @@
47444745
"directoryName": "unified-analytics",
47454746
"inFolder": false,
47464747
"strictDirectoryName": false
4748+
},
4749+
"lightningtypebundle": {
4750+
"id": "lightningtypebundle",
4751+
"name": "LightningTypeBundle",
4752+
"directoryName": "lightningTypes",
4753+
"inFolder": false,
4754+
"strictDirectoryName": true,
4755+
"metaFileSuffix": "schema.json",
4756+
"strategies": {
4757+
"adapter": "bundle"
4758+
},
4759+
"supportsPartialDelete": true
47474760
}
47484761
}
47494762
}

src/resolve/metadataResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ const parseAsMetadata =
390390
if (tree.isDirectory(fsPath)) {
391391
return;
392392
}
393-
return ['DigitalExperience', 'ExperiencePropertyTypeBundle']
393+
return ['DigitalExperience', 'ExperiencePropertyTypeBundle', 'LightningTypeBundle']
394394
.map((type) => registry.getTypeByName(type))
395395
.find((type) => fsPath.split(sep).includes(type.directoryName))?.name;
396396
};

src/utils/filePathGenerator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ export const filePathsFromMetadataComponent = (
110110
];
111111
}
112112

113-
// lwc, aura, waveTemplate, experiencePropertyType
113+
// lwc, aura, waveTemplate, experiencePropertyType, lightningTypeBundle
114114
if (type.strategies?.adapter === 'bundle') {
115115
const mappings = new Map<string, string[]>([
116116
['ExperiencePropertyTypeBundle', [join(packageDirWithTypeDir, `${fullName}${sep}schema.json`)]],
117+
['LightningTypeBundle', [join(packageDirWithTypeDir, `${fullName}${sep}schema.json`)]],
117118
['WaveTemplateBundle', [join(packageDirWithTypeDir, `${fullName}${sep}template-info.json`)]],
118119
['LightningComponentBundle', [join(packageDirWithTypeDir, `${fullName}${sep}${fullName}.js${META_XML_SUFFIX}`)]],
119120
['AuraDefinitionBundle', [join(packageDirWithTypeDir, `${fullName}${sep}${fullName}.cmp${META_XML_SUFFIX}`)]],

0 commit comments

Comments
 (0)