Skip to content

Commit 5cecc65

Browse files
W-21249438: add strategy for aab (#1683)
* fix: add filePathGenerator strategy for AiAuthoringBundle * chore: update yarn.lock * chore: bump salesforce/core
1 parent 807de33 commit 5cecc65

4 files changed

Lines changed: 2204 additions & 1662 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"node": ">=18.0.0"
2626
},
2727
"dependencies": {
28-
"@salesforce/core": "^8.24.0",
28+
"@salesforce/core": "^8.26.0",
2929
"@salesforce/kit": "^3.2.4",
3030
"@salesforce/ts-types": "^2.0.12",
3131
"@salesforce/types": "^1.6.0",

src/utils/filePathGenerator.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ export const filePathsFromMetadataComponent = (
147147
join(packageDirWithTypeDir, `${fullName}${sep}layout.json`),
148148
],
149149
],
150+
[
151+
'AiAuthoringBundle',
152+
[join(packageDirWithTypeDir, `${fullName}${sep}${fullName}.aiAuthoringBundle${META_XML_SUFFIX}`)],
153+
],
150154
]);
151155

152156
const matched = mappings.get(type.name);

test/utils/filePathGenerator.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,16 @@ const testData = {
174174
},
175175
],
176176
},
177+
bundleAiAuthoring: {
178+
fullName: 'MyAiAuthoringBundle',
179+
typeName: 'AiAuthoringBundle',
180+
expectedFilePaths: [getFilePath('aiAuthoringBundles/MyAiAuthoringBundle/MyAiAuthoringBundle.bundle-meta.xml')],
181+
expectedComponents: [
182+
{
183+
xml: getFilePath('aiAuthoringBundles/MyAiAuthoringBundle/MyAiAuthoringBundle.bundle-meta.xml'),
184+
},
185+
],
186+
},
177187
nonDecomposedExplicit: {
178188
fullName: 'CustomLabels',
179189
typeName: 'CustomLabels',

0 commit comments

Comments
 (0)