File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ logger.info('output directory: %s', outDir);
105
105
if ( target . isDirectory ( ) ) {
106
106
// the ajv json validator will be passed into the main module to help with processing
107
107
var files = [ ] ;
108
- readdirp ( { root : schemaPath , fileFilter : `*.${ schemaExtension } ` } )
108
+ readdirp ( schemaPath , { root : schemaPath , fileFilter : `*.${ schemaExtension } ` } )
109
109
. on ( 'data' , entry => {
110
110
files . push ( entry . fullPath ) ;
111
111
try {
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ Schema.getExamples = function(filePath, schema){
358
358
var filename = path . basename ( filePath , path . extname ( filePath ) ) ;
359
359
filename = filename . split ( '.' ) [ 0 ] + '.example.*.json' ;
360
360
return new Promise ( ( resolve , reject ) => {
361
- readdirp ( { root : dirname , fileFilter : filename } )
361
+ readdirp ( dirname , { root : dirname , fileFilter : filename } )
362
362
. on ( 'data' , entry => exampleFileNames . push ( entry . fullPath ) )
363
363
. on ( 'end' , ( ) => resolve ( exampleFileNames ) )
364
364
. on ( 'error' , err => reject ( err ) ) ;
You can’t perform that action at this time.
0 commit comments