File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff 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');
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments