Skip to content

Commit ed3a15e

Browse files
Merge pull request #42 from Adedoyin-Emmanuel/v1.4.9
V1.4.9
2 parents 9f0bda5 + b8b600e commit ed3a15e

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Methane is a **CLI** tool that helps developers easily create **React components
1313

1414
## What's New ❓
1515

16-
The latest patch version 1.4.8 introduces a crucial fix that enhances the naming conventions for generated components and Next.js pages. This update ensures that hyphenated names are correctly capitalized, providing a more consistent and readable codebase.
16+
The latest patch version 1.4.9 introduces a crucial fix that enhances the naming conventions for generated components and Next.js pages. This update ensures that hyphenated names are correctly capitalized, providing a more consistent and readable codebase.
1717

1818
**Component Capitalization Fix:**
1919

helpers/generators/register/registerPage.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import * as readUserConfig from "../../utilis/readUserConfig.js";
55

66
export const addPageImport = (rootDir: string, pageName: string, currentPageName: string) => {
77
const supportedExtensions = [".js", ".jsx", ".ts", ".tsx"];
8-
const generatedPageImportStatement =
9-
readUserConfig.readConfig().generateFolder === "true"
10-
? `import ${pageName} from "./${currentPageName}/${pageName}/${pageName}";`
11-
: `import ${pageName} from "./${currentPageName}/${pageName}";`;
8+
const generatedPageImportStatement = `import ${pageName} from "./${currentPageName}/${pageName}";`;
129

1310
const checkFile = (filePath: string) => {
1411
const fileExt = path.extname(filePath);

helpers/utilis/packageDescription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import colors from "colors";
33
import { program } from "commander";
44
const packageDescription = () => {
55
program
6-
.version("1.4.8")
6+
.version("1.4.9")
77
.description(
88
colors.cyan(
99
"Methane-Cli is a tool for efficient creation of React or NextJs components, pages and Service Worker files."

methane/methane.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"component": "arrow",
44
"page": "arrow",
55
"generateStylesheet": "false",
6-
"generateFolder": "true",
6+
"generateFolder": "false",
77
"register": "false",
88
"stylesheetType": "css"
99
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "methane-cli",
3-
"version": "1.4.8",
3+
"version": "1.4.9",
44
"description": "methane-cli is a command-line tool for generating React components and pages with ease.",
55
"main": "./dist/index.js",
66
"type": "module",

0 commit comments

Comments
 (0)