Skip to content

Commit 685dc1e

Browse files
refactor: inline basename call in isWebapplicationsFolder
Remove WEBAPPLICATIONS_FOLDER_NAME constant and inline the basename() call directly since it's only used once and the cost is negligible.
1 parent f491141 commit 685dc1e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/config/webappDiscovery.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ export const DEFAULT_DEV_COMMAND = 'npm run dev';
2929
*/
3030
const SFDX_WEBAPPLICATIONS_PATH = 'force-app/main/default/webapplications';
3131

32-
/**
33-
* The standard webapplications folder name (derived from SFDX path)
34-
*/
35-
const WEBAPPLICATIONS_FOLDER_NAME = basename(SFDX_WEBAPPLICATIONS_PATH);
36-
3732
/**
3833
* Pattern to match webapplication metadata XML files
3934
*/
@@ -88,7 +83,7 @@ function shouldExcludeDirectory(dirName: string): boolean {
8883
* Check if a folder name is the standard webapplications folder
8984
*/
9085
function isWebapplicationsFolder(folderName: string): boolean {
91-
return folderName === WEBAPPLICATIONS_FOLDER_NAME;
86+
return folderName === basename(SFDX_WEBAPPLICATIONS_PATH);
9287
}
9388

9489
/**

0 commit comments

Comments
 (0)