File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,12 @@ async function main() {
153153 inputSpecPaths . map ( async ( specPath ) => {
154154 if ( cli . flags . output !== "." && output === OUTPUT_FILE ) {
155155 let outputDir = path . join ( process . cwd ( ) , cli . flags . output ) ;
156- if ( ! isGlob ) outputDir = path . dirname ( outputDir ) ; // use output dir for glob; use parent dir for single files
157- await fs . promises . mkdir ( path . join ( outputDir , path . dirname ( specPath ) ) , { recursive : true } ) ; // recursively make parent dirs
156+ if ( isGlob ) {
157+ outputDir = path . join ( outputDir , path . dirname ( specPath ) ) ; // globs: use output dir + spec dir
158+ } else {
159+ outputDir = path . dirname ( outputDir ) ; // single files: just use output parent dir
160+ }
161+ await fs . promises . mkdir ( outputDir , { recursive : true } ) ; // recursively make parent dirs
158162 }
159163 await generateSchema ( specPath ) ;
160164 } )
Original file line number Diff line number Diff line change 4848 "lint" : " eslint --ignore-path .gitignore --ext .js,.ts src" ,
4949 "prepare" : " npm run build" ,
5050 "pregenerate" : " npm run build" ,
51- "test" : " npm run build && jest --no-cache" ,
51+ "test" : " npm run build && jest --no-cache --test-timeout=10000 " ,
5252 "test:coverage" : " npm run build && jest --no-cache --coverage && codecov" ,
5353 "typecheck" : " tsc --noEmit" ,
5454 "version" : " npm run build"
You can’t perform that action at this time.
0 commit comments