@@ -57,13 +57,15 @@ const _getScriptsPath = function() {
5757const scriptsFromNpm = function ( ) {
5858 //path: "@devloco/react-scripts-test",
5959 //path: "@devloco/react-scripts-wptheme",
60+ //console.log('SCRIPTS FROM NPM');
6061 return {
6162 path : "@devloco/react-scripts-wptheme" ,
6263 callback : function ( ) { }
6364 } ;
6465} ;
6566
6667const scriptsFromGit = function ( ) {
68+ console . log ( 'SCRIPTS FROM GIT' ) ;
6769 const deleteFolderRecursive = ( path ) => {
6870 if ( fs . existsSync ( path ) ) {
6971 fs . readdirSync ( path ) . forEach ( function ( file ) {
@@ -98,6 +100,7 @@ const scriptsFromGit = function() {
98100} ;
99101
100102const scriptsFromFile = function ( ) {
103+ console . log ( 'SCRIPTS FROM FILE' ) ;
101104 // let filePath = "file:E:\\WPDev\\github\\devloco\\react-scripts-wptheme";
102105 let filePath = "file:/mnt/e/WPDev/github/devloco/create-react-app/packages/react-scripts" ;
103106 return {
@@ -208,7 +211,6 @@ function createApp(
208211 console . log ( ) ;
209212
210213 let useYarn = useNpm ? false : shouldUseYarn ( ) ;
211- useYarn = false ; // always use NPM for now.
212214
213215 const originalDirectory = process . cwd ( ) ;
214216 process . chdir ( root ) ; // change into the newly created folder, then run create-react-app.
0 commit comments