Skip to content

Commit e6115c7

Browse files
CopilotLipata
andcommitted
Fix workspace detection to search entire workspace directory structure
Remove restriction to src subdirectories within workspaces, allowing glob patterns to find .tsx files throughout the entire workspace structure including project folders outside src directories. Co-authored-by: Lipata <[email protected]>
1 parent 1e5dfd0 commit e6115c7

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

packages/core/update/Update.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -104,28 +104,14 @@ export async function updateWorkspace(rootPath: string): Promise<boolean> {
104104
expandedWorkspaces.forEach(expandedWorkspace => {
105105
// Only add if it's a directory
106106
if (fs.directoryExists(expandedWorkspace)) {
107-
// For React/Webcomponents, look for src directory within workspace
108-
const srcPath = path.join(expandedWorkspace, "src");
109-
if (fs.directoryExists(srcPath)) {
110-
workspaces.push(srcPath);
111-
} else {
112-
// Fallback to workspace root if no src directory
113-
workspaces.push(expandedWorkspace);
114-
}
107+
workspaces.push(expandedWorkspace);
115108
}
116109
});
117110
} else {
118111
// Direct workspace path
119112
const workspacePath = path.join(rootPath, w);
120113
if (fs.directoryExists(workspacePath)) {
121-
// For React/Webcomponents, look for src directory within workspace
122-
const srcPath = path.join(workspacePath, "src");
123-
if (fs.directoryExists(srcPath)) {
124-
workspaces.push(srcPath);
125-
} else {
126-
// Fallback to workspace root if no src directory
127-
workspaces.push(workspacePath);
128-
}
114+
workspaces.push(workspacePath);
129115
}
130116
}
131117
});

0 commit comments

Comments
 (0)