Skip to content

Commit

Permalink
fix: digitalExperience to isBundle check
Browse files Browse the repository at this point in the history
  • Loading branch information
venuatthota committed Nov 15, 2022
1 parent a8efa5e commit e6add91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared/functions.ts
Expand Up @@ -19,7 +19,8 @@ export const getKeyFromObject = (element: RemoteChangeElement | ChangeResult): s
throw new Error(`unable to complete key from ${JSON.stringify(element)}`);
};

export const isBundle = (cmp: SourceComponent): boolean => cmp.type.strategies?.adapter === 'bundle';
export const isBundle = (cmp: SourceComponent): boolean =>
cmp.type.strategies?.adapter === 'bundle' || cmp.type.strategies?.adapter === 'digitalExperience';
export const isLwcLocalOnlyTest = (filePath: string): boolean =>
filePath.includes('__utam__') || filePath.includes('__tests__');

Expand Down

0 comments on commit e6add91

Please sign in to comment.