File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ async function main() {
9
9
process . kill ( - child . pid ) ;
10
10
11
11
execSync (
12
- "yarn openapi --input ./dist/openapi.json --output ./src/ sdk/generated --name Engine" ,
12
+ "yarn openapi --input ./dist/openapi.json --output ./sdk/src --name Engine" ,
13
13
) ;
14
14
15
15
const code = fs
16
- . readFileSync ( "./src/ sdk/generated /Engine.ts" , "utf-8" )
16
+ . readFileSync ( "./sdk/src /Engine.ts" , "utf-8" )
17
17
. replace ( `export class Engine` , `class EngineLogic` ) . concat ( `
18
18
export class Engine extends EngineLogic {
19
19
constructor(config: { url: string; accessToken: string; }) {
20
20
super({ BASE: config.url, TOKEN: config.accessToken });
21
21
}
22
22
}
23
23
` ) ;
24
- fs . writeFileSync ( "./src/ sdk/generated /Engine.ts" , code ) ;
24
+ fs . writeFileSync ( "./sdk/src /Engine.ts" , code ) ;
25
25
}
26
26
27
27
main ( ) ;
You can’t perform that action at this time.
0 commit comments