Skip to content

Commit fee0043

Browse files
fix: add filePathGenerator strategy for AiAuthoringBundle
1 parent d52ebd0 commit fee0043

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

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)