File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -586,7 +586,7 @@ function main() {
586586
587587 fs . writeFileSync ( 'translate.resource' , '// Total.js translation file\n// Created: ' + new Date ( ) . format ( 'yyyy-MM-dd HH:mm' ) + '\n' + builder . join ( '\n' ) ) ;
588588 console . log ( 'Total.js: the translation was created (' + count + ' texts)' ) ;
589- } ) ;
589+ } , ( path , dir ) => dir ? path . indexOf ( '/node_modules/' ) === - 1 && path . indexOf ( '/tmp/' ) === - 1 : true ) ;
590590 return ;
591591 }
592592
@@ -633,7 +633,7 @@ function main() {
633633
634634 fs . writeFileSync ( 'translate.csv' , output . join ( '\n' ) ) ;
635635 console . log ( 'Total.js: the translation was created (' + count + ' texts)' ) ;
636- } ) ;
636+ } , ( path , dir ) => dir ? path . indexOf ( '/node_modules/' ) === - 1 && path . indexOf ( '/tmp/' ) === - 1 : true ) ;
637637 return ;
638638 }
639639
@@ -643,9 +643,8 @@ function main() {
643643 var can = true ;
644644 for ( var i = 0 ; i < files . length ; i ++ ) {
645645 var name = files [ i ] ;
646- if ( name [ 0 ] === '.' )
647- continue ;
648- can = false ;
646+ if ( name [ 0 ] !== '.' )
647+ can = false ;
649648 }
650649
651650 if ( ! can ) {
You can’t perform that action at this time.
0 commit comments