Skip to content

Commit 3a3dd8d

Browse files
committed
Fixed create component script | Pankaj
1 parent 44d708d commit 3a3dd8d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ commander
2222

2323
if (commander.createcomponent) {
2424
getComponentDetails()
25-
.then(() => {
26-
let userEnteredComponentName = arguments[0].componentname;
25+
.then((arguments) => {
26+
let userEnteredComponentName = arguments.componentname;
2727

2828
let componentName = userEnteredComponentName.charAt(0).toUpperCase() + userEnteredComponentName.slice(1)
29-
let location = arguments[0].location;
29+
let location = arguments.location;
3030
const baseURL = 'src/Components/';
3131

3232
createComponentSkeleton(componentName, location, baseURL).then((data) => {

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-front-cli",
3-
"version": "1.0.7",
3+
"version": "1.1.0",
44
"description": "Node CLI utility for creating react component library",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
 (0)