fix: create-tool.mjs

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-24 00:58:05 +01:00
parent ae703b22af
commit 66e5b23f54
3 changed files with 22 additions and 8 deletions

View File

@@ -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,