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() {
153
153
inputSpecPaths . map ( async ( specPath ) => {
154
154
if ( cli . flags . output !== "." && output === OUTPUT_FILE ) {
155
155
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
158
162
}
159
163
await generateSchema ( specPath ) ;
160
164
} )
Original file line number Diff line number Diff line change 48
48
"lint" : " eslint --ignore-path .gitignore --ext .js,.ts src" ,
49
49
"prepare" : " npm run build" ,
50
50
"pregenerate" : " npm run build" ,
51
- "test" : " npm run build && jest --no-cache" ,
51
+ "test" : " npm run build && jest --no-cache --test-timeout=10000 " ,
52
52
"test:coverage" : " npm run build && jest --no-cache --coverage && codecov" ,
53
53
"typecheck" : " tsc --noEmit" ,
54
54
"version" : " npm run build"
You can’t perform that action at this time.
0 commit comments