@@ -4,7 +4,6 @@ const ncp = require('ncp').ncp;
44const changeCase = require ( 'change-case' ) ;
55const shell = require ( 'shelljs' ) ;
66const replaceInFiles = require ( 'replace-in-files' ) ;
7-
87ncp . limit = 16 ;
98
109let destinationPath = "" ;
@@ -44,9 +43,10 @@ const locationSelector = async (path)=>{
4443//prompt user to select tech stack and save it to a config file
4544const stackTypeSelector = async ( path ) => {
4645 path = path ? path :__dirname + "/developer-templates" ;
47- let techStack = ""
46+ console . log ( "stackTypeSelector" , path ) ;
47+ console . log ( __dirname )
4848 try {
49- return JSON . parse ( fs . readFileSync ( "developer-templates/input .json" ) ) . techStack ;
49+ return JSON . parse ( fs . readFileSync ( __dirname + "developer-templates/config .json" ) ) . techStack ;
5050 } catch ( e ) {
5151 let folderList = getFolderList ( path ) ;
5252 const response = await prompts ( {
@@ -55,7 +55,7 @@ const stackTypeSelector = async (path)=> {
5555 message : 'Select your Project stack' ,
5656 choices : folderList
5757 } ) ;
58- fs . writeFile ( "developer-templates/input .json" , JSON . stringify ( response ) , function ( err ) {
58+ fs . writeFile ( "developer-templates/config .json" , JSON . stringify ( response ) , function ( err ) {
5959 if ( err ) throw err ;
6060 console . log ( 'Response was saved to /developer-templates/config.json. Delete this file if you want to change it later.' ) ;
6161 }
@@ -69,6 +69,7 @@ const templateSelector = async (path)=> {
6969 const techStack = await stackTypeSelector ( ) ;
7070 console . log ( "Available templates for " + techStack ) ;
7171 path = path ? path :__dirname + "/developer-templates/" + techStack ;
72+ console . log ( "templateSelector" , path )
7273 let folderList = getFolderList ( path ) ;
7374 const response = await prompts ( {
7475 type : 'autocomplete' ,
0 commit comments