@@ -18,7 +18,7 @@ export default async() => {
18
18
const jobs : [ ( ) => any , string ] [ ] = [
19
19
[ ( ) => cloneRepoJob ( response ) , 'Cloning the repository' ] ,
20
20
[ ( ) => moveFolderJob ( response ) , 'Moving the folder & Creating config' ] ,
21
- [ ( ) => installDependenciesJob ( path . join ( __dirname , '..' , '..' , response [ 'project-name' ] ) ) , 'Installing dependencies' ]
21
+ [ ( ) => installDependenciesJob ( `./ ${ response [ 'project-name' ] } ` ) , 'Installing dependencies' ]
22
22
]
23
23
24
24
for ( const [ job , message ] of jobs ) {
@@ -42,8 +42,8 @@ export const cloneRepoJob = (response) => {
42
42
43
43
export const moveFolderJob = ( response ) => {
44
44
return new Promise ( ( resolve , reject ) => {
45
- const rawPath = `${ path . join ( __dirname , '..' , '..' , response [ 'project-name' ] , ` gcommands-templates-${ response [ 'project-template' ] . branch } ` ) } ` ;
46
- const parsedPath = `${ path . join ( __dirname , '..' , '..' , response [ 'project-name' ] ) } `
45
+ const rawPath = `./ ${ response [ 'project-name' ] } / gcommands-templates-${ response [ 'project-template' ] . branch } ` ;
46
+ const parsedPath = `./ ${ response [ 'project-name' ] } ` ;
47
47
48
48
mv ( rawPath , parsedPath , { mkdirp : false , clobber : false } , ( err ) => {
49
49
if ( err ) reject ( err ) ;
0 commit comments