Skip to content

Commit 59c3a2e

Browse files
fix SDK path
1 parent 5f9d17c commit 59c3a2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripts/generate-sdk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ async function main() {
99
process.kill(-child.pid);
1010

1111
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",
1313
);
1414

1515
const code = fs
16-
.readFileSync("./src/sdk/generated/Engine.ts", "utf-8")
16+
.readFileSync("./sdk/src/Engine.ts", "utf-8")
1717
.replace(`export class Engine`, `class EngineLogic`).concat(`
1818
export class Engine extends EngineLogic {
1919
constructor(config: { url: string; accessToken: string; }) {
2020
super({ BASE: config.url, TOKEN: config.accessToken });
2121
}
2222
}
2323
`);
24-
fs.writeFileSync("./src/sdk/generated/Engine.ts", code);
24+
fs.writeFileSync("./sdk/src/Engine.ts", code);
2525
}
2626

2727
main();

0 commit comments

Comments
 (0)