File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ type AdditionalProperties = Partial<{
32
32
} > ;
33
33
34
34
async function setHostsOptions ( ) : Promise < void > {
35
- const openapitoolsPath = path . join ( __dirname , '../ ../openapitools.json' ) ;
35
+ const openapitoolsPath = path . join ( process . cwd ( ) , '../openapitools.json' ) ;
36
36
const openapitools = JSON . parse ( await readFile ( openapitoolsPath , 'utf-8' ) ) ;
37
37
38
38
const [ language , client ] = process . argv . slice ( 2 ) ;
@@ -43,7 +43,7 @@ async function setHostsOptions(): Promise<void> {
43
43
throw new Error ( `Generator not found: ${ generator } ` ) ;
44
44
}
45
45
46
- const specPath = path . join ( __dirname , `../ ../specs/bundled/${ client } .yml` ) ;
46
+ const specPath = path . join ( process . cwd ( ) , `../specs/bundled/${ client } .yml` ) ;
47
47
48
48
if ( ! ( await stat ( specPath ) ) ) {
49
49
throw new Error ( `File not found ${ specPath } ` ) ;
You can’t perform that action at this time.
0 commit comments