Skip to content

Commit ec57468

Browse files
BackendExpertJehanKandyAnupa1998
committed
Update
Co-Authored-By: JehanKandy <jehankandy@gmail.com> Co-Authored-By: Anupa Gamage <125038143+Anupa1998@users.noreply.github.com>
1 parent 0627e2b commit ec57468

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

index.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@ if (type === 'loginSignUp') {
1616
const source = argv.source || path.join(__dirname, 'LoginSignUp');
1717
const destination = argv.destination || path.join(process.cwd(), 'src/components/LoginSignUp');
1818

19-
try {
20-
await fs.copy(source, destination);
21-
console.log('The Login and SignUp templete Successfully Createed');
22-
} catch (err) {
23-
console.error('Error copying folder:', err);
24-
}
19+
async function RunReactLoginSignIn() {
20+
try {
21+
await fs.copy(source, destination);
22+
console.log('The Login and SignUp templete Successfully Createed');
23+
} catch (err) {
24+
console.error('Error copying folder:', err);
25+
}
26+
}
27+
28+
module.exports = RunReactLoginSignIn
2529
}
2630

27-
console.log(`${type} created at ${filePath}`);
31+
// console.log(`${type.charAt(0).toUpperCase() + type.slice(1)} ${name} created at ${filePath}`);
2832

2933

3034
// const sourceApp = argv.source || path.join(__dirname, 'App');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Login and SignUp for ReactJS",
55
"main": "index.js",
66
"bin": {
7-
"create": "index.js"
7+
"create": "./index.js"
88
},
99
"repository": {
1010
"type": "git",

0 commit comments

Comments
 (0)