Skip to content

Commit

Permalink
fix: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
iib0011 committed Jun 23, 2024
1 parent 2f6c16f commit 0800aa5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ npm run dev

### Create a new tool

`npm run script:create:tool my-tool-name folder1/folder2`
```bash
npm run script:create:tool my-tool-name folder1/folder2
```

## Contributors

Expand Down
1 change: 1 addition & 0 deletions scripts/create-tool.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0800aa5

Please sign in to comment.