File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,15 @@ module.exports = function (program) {
2020 . action ( async ( opts ) => {
2121 const verbose = opts . verbose
2222 const suffix = opts . suffix || '$.ttl'
23- let path = opts . path || 'data'
24- path = path . startsWith ( Path . sep ) ? path : Path . join ( process . cwd ( ) , path )
25- if ( verbose ) {
26- console . log ( `Migrating files in ${ path } ` )
27- }
23+ let paths = opts . path ? [ opts . path ] : [ 'data' , 'config/templates' ]
24+ paths = paths . map ( path => path . startsWith ( Path . sep ) ? path : Path . join ( process . cwd ( ) , path ) )
2825 try {
29- await migrate ( path , suffix , verbose )
26+ for ( const path of paths ) {
27+ if ( verbose ) {
28+ console . log ( `Migrating files in ${ path } ` )
29+ }
30+ await migrate ( path , suffix , verbose )
31+ }
3032 } catch ( err ) {
3133 console . error ( err )
3234 }
You can’t perform that action at this time.
0 commit comments