File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,21 @@ console.table({
1919 APIS : config . exportPath ,
2020} ) ;
2121
22- console . log ( '' ) ;
23- if ( argumentsInstance . clean ) {
24- console . log ( 'Removing previously generated data...' ) ;
25- fs . removeSync ( config . exportPath ) ;
26- } else {
27- console . log ( 'no-clean flag recevived, clean folder skipped' ) ;
28- }
29- console . log ( '' ) ;
30-
3122// Read the file
3223async function run ( ) {
3324 try {
25+ // Check if the template does not exist
26+ config . templatePath ;
27+
28+ console . log ( '' ) ;
29+ if ( argumentsInstance . clean ) {
30+ console . log ( 'Removing previously generated data...' ) ;
31+ fs . removeSync ( config . exportPath ) ;
32+ } else {
33+ console . log ( 'no-clean flag recevived, clean folder skipped' ) ;
34+ }
35+ console . log ( '' ) ;
36+
3437 console . log ( 'Opening file:' , argumentsInstance . file ) ;
3538 const fileParser = new FileReaderService ( argumentsInstance . file , config ) ;
3639 console . log ( 'Parsing file...' ) ;
You can’t perform that action at this time.
0 commit comments