@@ -30,12 +30,12 @@ export const DEFAULT_DEV_COMMAND = 'npm run dev';
3030 * Standard metadata path segment for uiBundles (relative to package directory).
3131 * Consistent with other metadata types: packagePath/main/default/uiBundles
3232 */
33- const WEBAPPLICATIONS_RELATIVE_PATH = 'main/default/uiBundles' ;
33+ const UI_BUNDLES_RELATIVE_PATH = 'main/default/uiBundles' ;
3434
3535/**
3636 * Pattern to match uibundle metadata XML files
3737 */
38- const WEBAPP_META_XML_PATTERN = / ^ ( .+ ) \. u i b u n d l e - m e t a \. x m l $ / ;
38+ const UIBUNDLE_META_XML_PATTERN = / ^ ( .+ ) \. u i b u n d l e - m e t a \. x m l $ / ;
3939
4040/**
4141 * Discovered uiBundle with its directory path and optional manifest
@@ -47,7 +47,7 @@ export type DiscoveredUiBundle = {
4747 relativePath : string ;
4848 /** Parsed manifest content (null if no ui-bundle.json found) */
4949 manifest : UiBundleManifest | null ;
50- /** Webapp name (from .uibundle-meta.xml or folder name) */
50+ /** uiBundle name (from .uibundle-meta.xml or folder name) */
5151 name : string ;
5252 /** Whether this uiBundle has a ui-bundle.json manifest file */
5353 hasManifest : boolean ;
@@ -91,7 +91,7 @@ async function findUiBundleMetaXml(dirPath: string): Promise<string | null> {
9191 const matches : string [ ] = [ ] ;
9292
9393 for ( const entry of entries ) {
94- const match = WEBAPP_META_XML_PATTERN . exec ( entry ) ;
94+ const match = UIBUNDLE_META_XML_PATTERN . exec ( entry ) ;
9595 if ( match ) {
9696 matches . push ( match [ 1 ] ) ;
9797 }
@@ -187,7 +187,7 @@ async function getUiBundlesPathsFromProject(projectRoot: string): Promise<string
187187
188188 const existenceChecks = await Promise . all (
189189 packageDirs . map ( async ( pkg ) => {
190- const uiBundlesPath = join ( projectRoot , pkg . path , WEBAPPLICATIONS_RELATIVE_PATH ) ;
190+ const uiBundlesPath = join ( projectRoot , pkg . path , UI_BUNDLES_RELATIVE_PATH ) ;
191191 return ( await pathExists ( uiBundlesPath ) ) ? uiBundlesPath : null ;
192192 } )
193193 ) ;
@@ -444,7 +444,7 @@ export type DiscoverUiBundleResult = {
444444 *
445445 * Discovery use cases:
446446 * 1. SFDX Project Root: Search uiBundles in all package directories
447- * - Webapps identified by {name}.uibundle-meta.xml
447+ * - uiBundles identified by {name}.uibundle-meta.xml
448448 * - Always prompt for selection (even if only 1 uiBundle)
449449 *
450450 * 2. Inside uiBundles/<uiBundle> directory:
0 commit comments