File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,16 @@ export function processFiles(fileSystem: FileSystem) {
155155 return ( rootPath : string , exclude : string [ ] ) => {
156156 return pipe (
157157 fileSystem . getComponents ( rootPath ) ,
158- ( components ) => components . filter ( ( component ) => ! isExcluded ( component . content ! , exclude ) ) ,
158+ ( components ) => {
159+ return components . map ( ( component ) => {
160+ const pathLocation = component . type . name === 'ApexClass' ? component . content : component . xml ;
161+ return {
162+ ...component ,
163+ filePath : pathLocation ! ,
164+ } ;
165+ } ) ;
166+ } ,
167+ ( components ) => components . filter ( ( component ) => ! isExcluded ( component . filePath , exclude ) ) ,
159168 ( components ) => convertersToUse . map ( ( converter ) => converter ( components ) ) ,
160169 ( bundles ) => bundles . flat ( ) ,
161170 ) ;
You can’t perform that action at this time.
0 commit comments