mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-09 01:52:30 +05:30
fix: create-tool.mjs
This commit is contained in:
parent
ae703b22af
commit
66e5b23f54
3 changed files with 22 additions and 8 deletions
|
|
@ -71,7 +71,6 @@ export default function ${capitalizeFirstLetter(toolNameCamelCase)}() {
|
|||
}
|
||||
`
|
||||
)
|
||||
|
||||
createToolFile(
|
||||
`meta.ts`,
|
||||
`
|
||||
|
|
@ -79,7 +78,7 @@ import { defineTool } from '@tools/defineTool';
|
|||
import { lazy } from 'react';
|
||||
// import image from '@assets/text.png';
|
||||
|
||||
export const tool = defineTool('${folder}', {
|
||||
export const tool = defineTool('${folder.split(sep)[folder.split(sep).length - 1]}', {
|
||||
name: '${toolNameTitleCase}',
|
||||
path: '/${toolName}',
|
||||
// image,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue