Skip to content

Commit

Permalink
hotfix: source path problem
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Jan 8, 2025
1 parent 86aec32 commit 9ac5ae9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/src/features/Compilation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,13 @@ const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => {
): Promise<FileContentMap[]> => {
const files = [] as FileContentMap[];
const pathFiles = await remixClient.fileManager.readdir(`${workspacePath}/${dirPath}`);

for (const [path, entry] of Object.entries<any>(pathFiles)) {
if (entry.isDirectory === true) {
const deps = await getFolderFilemapRecursive(workspacePath, path);
const deps = await getFolderFilemapRecursive(workspacePath, dirPath + "/" + path);

for (const dep of deps) files.push(dep);

continue;
}

Expand All @@ -306,6 +309,7 @@ const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => {
file_content: content
});
}

return files;
};

Expand Down

0 comments on commit 9ac5ae9

Please sign in to comment.