mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-08 17:46:45 +05:30
feat: sum numbers init
This commit is contained in:
parent
bea0332020
commit
cfe0d324fe
17 changed files with 324 additions and 49 deletions
|
|
@ -30,7 +30,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')
|
||||
fs.writeFileSync(indexPath, `export const ${currentPath.split(sep)[currentPath.split(sep).length - 1]}Tools = [];\n`)
|
||||
console.log(`File created: ${indexPath}`)
|
||||
}
|
||||
// Recursively create the next folder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue