fix: readme

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-23 20:45:03 +01:00
parent 2f6c16f274
commit 0800aa52ad
3 changed files with 18 additions and 7 deletions

View File

@@ -31,6 +31,7 @@ function createFolderStructure(basePath, foldersToCreateIndexCount) {
const indexPath = join(currentPath, 'index.ts')
if (!fs.existsSync(indexPath) && index < folderArray.length - 1 && index >= folderArray.length - 1 - foldersToCreateIndexCount) {
fs.writeFileSync(indexPath, '// index.ts file')
console.log(`File created: ${indexPath}`)
}
// Recursively create the next folder
recursiveCreate(currentPath, index + 1)