@@ -46,10 +46,10 @@ jobs:
4646 envFileToInject = '.env/.env.local';
4747 }
4848
49- // --- 3. Generate Folder Structure (Max Depth 1) ---
49+ // --- 3. Generate Folder Structure ---
5050 const ignoreFolders = ['.git', '.next', 'node_modules', '.github', '.vscode'];
5151 const ignoreFiles = ['LICENSE'];
52- const noExpandFolders = ['public', 'migrations'];
52+ const noExpandFolders = ['public', 'migrations', 'assets' ];
5353
5454 function getStructure(dir, depth = 0) {
5555 let structure = '';
@@ -84,12 +84,15 @@ jobs:
8484
8585 // Build the string
8686 items.forEach((item) => {
87- const prefix = depth === 0 ? ' |- ' : ' |-- ';
87+ // Dynamically generate the tree prefix based on depth (e.g., ' |- ', ' |-- ', ' |--- ')
88+ const prefix = ' '.repeat(depth + 1) + '|' + '-'.repeat(depth + 1) + ' ';
8889
8990 if (item.isDirectory()) {
9091 structure += \`\${prefix}\${item.name}/\\n\`;
91- // Recurse only if at root AND the folder is not in noExpandFolders
92- if (depth === 0 && !noExpandFolders.includes(item.name)) {
92+
93+ // Recurse if at root, OR if we are at depth 1 inside a 'src' folder
94+ const isSrcSubfolder = depth === 1 && path.basename(dir) === 'src';
95+ if ((depth === 0 || isSrcSubfolder) && !noExpandFolders.includes(item.name)) {
9396 structure += getStructure(path.join(dir, item.name), depth + 1);
9497 }
9598 } else {
0 commit comments